NEW Arduino Uno R4 Boards - Minima & WiFi
ฝัง
- เผยแพร่เมื่อ 8 พ.ค. 2024
- Two new Arduino Uno boards - the Minima and WiFi. Let's examine them and test some of their unique features, including the CAN Bus and LED Matrix.
Article with code: dronebotworkshop.com/arduino-...
More articles and tutorials: dronebotworkshop.com
Join the conversation on the forum: forum.dronebotworkshop.com
Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
The Arduino Uno R3 was released in 2011. It has become the most popular maker and experimenter microcontroller board today, thanks to its ease of use and open-source design that allowed several low-cost “clones” to be made available.
Now, after a dozen years, Arduino has updated the Uno. Actually, they did make a WiFi Uno in 2018, but nobody noticed, and there was a “mini” collectors edition Uno in 2021. But this update is so big they made it into two boards!
Arduino has released the low-cost (20.00 USD) Uno R4 Minima and the full-featured Uno R4 WiFi boards (27.50 USD). These boards are pin-for-pin compatible with the older Uno R3 and are also 5-volt logic devices, rare these days. This means compatibility with your existing shields and prototyping boards.
The new boards are powered by the Renesas RA4M1 microcontroller, running at 48 MHz. This provides an emulation of the ATMega328P used in the original board and also adds new features, several that we will test out today.
Among the new features we will try out are the following:
12-bit DAC - We'll generate a sine wave with a library that makes it very easy.
CAN Bus connection - We'll connect 2 Minima boards using a CAN Bus.
WiFi Access Point - We'll build an Access Point with a web page to control an LED.
LED Matrix Display - We'll use the online Matrix Editor to create patterns.
We’ll also run benchmark tests on these boards and compare them to the older Uno R3, as well as a few other popular microcontroller boards.
Here is the Table of Contents of today's video:
00:00 - Introduction
01:41 - Arduino Uno R4 Boards
13:10 - Boot & 8mA Current Limitation
15:27 - Arduino R4 IDE Setup
16:40 - DAC & Sine Wave Hookup
18:21 - DAC - Sine Wave Code
20:28 - DAC - Sine Wave Demo with scope
21:37 - CAN Bus Explainer & Hookup
30:50 - CAN BUS Code - canwrite
32:28 - CAN BUS Code - canread
33:29 - CAN BUS Demo - 2 Minimas
35:11 - Uno R4 WiFi & ESP32
38:19 - WiFi Access Point Code
42:19 - WiFi Access Point Demo
43:19 - LED Matrix Explainer
46:18 - LED Live Preview Code
47:52 - LED Live Preview Online Edit & Demo
49:44 - Benchmarking Setup & Code
52:19 - Benchmark Test Results
54:56 - Conclusion
These are two unique boards, certain to interest experimenters and educators (the LED matrix opens up a lot of interesting classroom displays).
Hope you enjoy the video!
Bill - แนวปฏิบัติและการใช้ชีวิต
Hi everyone - It's come to my attention that there has been someone masquerading as myself, responding to some comments here with a link to a Telegram chat to win a prize from me. THIS IS A SCAM, I am not holding a contest, nor do I have a Telegram account. PLEASE DO NOT RESPOND TO THESE MESSAGES!!
It's happening on a lot of my videos, I'm taking steps to remove them manually, but as I have 162 videos, it will take some time. If you do run across a suspicious comment, I would appreciate you letting me know at info@dronebotworkshop.com.
Thanks!
Bill (The real one!)
Despite all odds this video is finally out! First, Canada Post lost my Arduinos, delivered them to the wrong house! Fortunately a nice lady brought the package over the next day. Then we had a total of 5 power failures, one due to a tornado, one due to a system error that left half a million people without power, not sure about the other three. And then the drive array on my Mac died, literally 2 weeks after the warranty ran out!
But at last it's here, hope you enjoy it. And I also hope my new drive array lasts longer than the last one!
Where you stay in Canada, which city?
@@alexnewton3376 I'm in the Montreal area
Very informative. Thanks.
Apple have perfected their break after warranties.
Not an Apple fan. I hope your new array lasts a lot longer. Thanks for sticking this out 😀. You got there eventually.
You are explaining a lot about benchmarks within microcontrollers!. But the truth is you are the benchmark. You are the one who keeps on giving and make sure that I will be on top of my game.. Thank you for everything, you are the one that makes me appreciate that there is a future in technology for the Common man. Thank you, thank you thank you!
this is the most complete demonstration for Arduino R4 boards so far. thanks!
A really comprehensive intro to the R4. I particularly like the CAN Bus coverage and the clear display of the full filenames that were used.
I'm glad that you enjoyed it and thank you for your generosity!
Thanks again. Your videos are very informative. I have worked with electronics for years and still I learn with each of your videos.
Top notch production as always.
Your videos are so informative and well researched; very impressive!!
Thanks for taking the time to dig deep and sharing your knowledge.
Thank you, Bill! I really enjoy your videos and have learned a lot about microprocessors and sbc's.
Bill, thanks again for another wonderful video! I was on vacation when you uploaded this one, so I watched it on my phone. I just loved it! You are our hero when it comes to explaining any new content from Arduino. I don't have to slow down the video to understand what you are saying and trying to relay to us. Some other creators ... not so much. Thanks again!
This is how instructional videos should be made. Well done!!
Bill, it always amazes me how detailed your videos are. This video went above and beyond your usual level of detail. It was a great video that will introduce the community to a board that as you said will likely replace the Uno R3 in educational kits. You also answered some questions I've been asking myself (the place of these boards compared to something like the ESP32). Ever since I watched your ESP32 introduction video and began experimenting with the ESP32 I've been using the Node MCU in my newer projects. I did some earlier comparisons of the R4 and ESP32 specs and knew it was more powerful than the R4. But your benchmark tests helped put it into perspective. Thank you for developing this video. It's awesome.
Now I'm wondering if an LED matrix display like the one built into the WiFi board is available as a standalone unit that can be controlled from an Uno or an ESP32 so we don't have to pay for the whole WiFi board each time we want to get one. That would be really neat to use in the classroom. I'm already using WS2812B LED strips. But a matrix would be neat to tinker with too. Thanks again!
You are the great teacher. I love you. Thanks again.
Hi Bill, just got my Uno R4 Minima, and bits, 17/11/23~wk-46.. so I'm reading instruction, to connect. Thanks for your Show.🎉❤
Thanks! I love your videos. They've taught me so much!
Thank you Jason, much appreciated!
Thanks for the new video! in a terrible situation.
I'll try the UNO R4 some day but I recognized again that ESP32 is an excellent chipset.
Thanks again Bill for a very informative video... especially with all the obstacles that have occured in your home and life. I have been pursuing the Pico-W lately since it has many of the same features and I also wanted to get my feet wet in the Micropython world. Will be picking up a R4 wifi board soon and will revisit my coding in the Arduino IDE world again.... Love all that you do... grateful for all your knowledge that you share with us..
Bill, Thanks for all the fine instruction videos !
And thank you as well Cornelius, I'm happy to hear that you enjoy them!
Just a pet peeve of mine... The "D-Subminiature" or commonly "D-Sub" connector shell that you showed in your CAN interface section (with 9 pins) is technically a DE shell, not a DB. (PS: this entire discussion ignores pin gender and strictly focuses on pin COUNT and shell size.)
A standard density DB shell has 25 pins. There were 5 different "D-Sub" shells in the original series (the "D" due to their shape) with the standard pin densities of 9, 15, 25, 37 and 50 pins. Letter designators for the shell sizes in increasing size-order were E, A, B, C and D. (Unfortunately due to the later popularity of the DB-25 connector, "DB" became a de-facto abbreviation for the entire D-Sub connector series.) The full designation is the shell size followed by the number of pins. For instance the CAN connector you showed should be a DE-9, not a DB9. Or if you thought it less confusing, you might have more simply called it a 9-pin D Connector.
Another common DE connector found on many older PC back panels was a DE-15 with 3 rows of pins often used for video interfaces. This is one of the "high density" D-Sub pin counts. Other high-density pin counts are 26, 44, 62 and 78 pins. [Note: A Standard Density DA connector and a High Density DE connector would both have 15 pins -- DA-15 and DE-15 -- however with different shell sizes. These 2 D-Sub connectors, while having the same pin count, would not be able to connect to one another.]
Many people would just blow off this entire discussion, but I know you are a stickler for technical accuracy (like me)! So this rant is FYI, and to scratch the itch that was created. :))
4:15 worth noting is that it now uses a buck converter for transforming the input voltage from Vin/Barrel down to 5V, so it is a lot more efficient and produces less heat.
Exciting stuff!
Thank you so much for what you do. I'm new here and really getting into this scripting and tinkering with electronics. The knowledge you share is greatly appreciated. I expected to go through these professional & paid online courses to be able to learn the stuff you're teaching for free! Again, thank you ✌🏼
Thanks for the video. This is very timely, I have one of each board arriving in the next few days. Arduino-y should definitely be a word.
Thank you - very clear and helpful video...
Awesome tutorial !...cheers.
You are the best electronics educator in the world!
Thanks for the content, Bill!
And thank you as well!
Bill excellent video I had seen another video on the R4, but you have covered Al or more . At least now I have a better understanding of the new board. You hit a home run in my book. EXCELLENT Video😅😅😊
5 months ago?? I must have slept through.... Unbelievable.... Just been through Paul's (McWorther) videos (Arduino R4 wifi) when I saw yours.... Great stuff !! Keep up the great work!
Thanks from down under. I love your videos.
Thank you so much, I'm glad that you enjoy them!
Good to see you back Bill. Any plans to review the Arduino Nano ESP32.
Excellent video, thanks
Love the benchmark, would love to see how an R4 goes with the CNC shield running grbl now
Thanks bill for another wonderfull video. I would like another more easy explanation about wifi on R4. It was very fast to me.
Thanks Bill for the walk through I picked up a R4 and haven't taken it out of the box yet (winter project). Going from the R3 to the R4 will probably cause problems with the 8ma limitation, the R3 was almost indestructible.
I truly believe they should have chosen another name to this board instead of using the reputation of the previous Uno.
A lot of libraries and projects also use specific AVR assembler code or direct register manipulation to optimize the execution. So both hardware and software problems will occur.
I am looking forward for the next Arduino Due! Please be soon!
Are you sure that SWD means "Software Diagnostics"? For every other MCU I've used it with it means "Serial Wire Debug".
I liked seeing the Dhrystone benchmark results! I run on my R4s the Whetstone benchmark, which emphasizes floating point performance, and was surprised to find that the Raspberry Pi Pico showed better performance (despite not having hardware floating point). The ESP32 (with floating point hardware and running at 240MHz) was the clear winner. The numbers I got were 2.8 MIPS for the R4, 10.4 MIPS for the Pico and 15.7 MIPS for the ESP32. I am not sure if I made some mistake in my tests, I hope that others will also try some floating point benchmark.
Very interesting benchmark results. Not sure if you have access to an Arduino Giga, but I'd be curious as to how it fared. The ESP32 seems to be a consistent winner in many of these tests.
This may seem trivial, but I'd like to highlight something that I really appreciate about these videos. That is, when discussing these boards, the maker and model number is frequently given to the audience in full. It may appear repetitive, but this shows I'm watching a competent instructor with an engineering background. People may join a video part-way through or, like me, they may feel somewhat overwhelmed by the diversity of choice in this field. It's therefore crucial, in my opinion, to emphasise exactly what is being presented and discussed. The lazy way out would be to just call them something like a Uno, but it avoids ambiguity when presented in the manner shown here. I am left in no doubt what hardware is being discussed, so it grounds my expectation & gives me a consistent point of reference, if I need to look up or compare with other boards. In my own field of server OS and networking support, I drill into my team that we must always be accurate, unambiguous and use industry-standard terminology. It's the same principle here with these videos.
That opamp would enable the arduino to do LVDS without much additional hardware. Only the sampling rate of the ADCs limiting the bandwith. I mean it is not a great solution but if you just slap something together for testing, this is great. It won't replace a 2CH scope in Delta mode for troubleshooting though.
Nice one. Thank you. (I'm a man of few words!)
Those low current sensitive pins are a major shortcoming in the UNO line of maker boards.
Thanks amazing contents❤
Thank you for a very interesting guide. I teach children robotics and coding on the micro:bit platform. I already know that as soon as they turn 12, Uno R4 will be the next step. Greetings from Poland.
Did you terminate the CAN bus properly when trying the 5 V transceivers? Certainly with the TJA1040 and the MCP2551 they expect to see proper termination. Sometimes you get lucky and something gets through, but mostly not.
Can you do a video on using this with the can-bus transciever?
Thanks!
And thank you as well!
Can a Uno R4 running a web client connect over a local network to a UNO R4 running a web server?
Nice job ! Since I tested esp32, I’m having trouble getting back to the Uno R3, Wifi apart, it’s faster. I may try the R4 WiFi but what can be the utility of the LED matrix?
Where did you find your plexi card holders?
Christian
Velizy YVELINES FRANCE
An embarrassment of riches! I love all the microcontroller choices we have now. I am still a fan of the ESP32 but have managed to build a stable of different devices.
This looks Ike it is going to be fun.
Hello there! I have been following your channel for a long while, I have been able to learn quite a lot from your teachings throughout TH-cam. Currently I am a mechanical engineering student with a mechatronics concentration and as a side project for myself I’ve been starting to program a self made to wheeled self balancing robot and I was wondering if I could send you my code to take a look at with a few questions as well if that’s ok.
Yes, Arduinouy is a word. I just seconded the motion... :P :D
I think you omitted an important issue. The Arduino Uno R4 appears to only support the two typical hardware interrupts. It does not appear to support pin change interrupts. The pin change interrupt demo sketches you provide do not compile. Furthermore the PicChangeInterrupt library does not support this Renesas RA architecture and thus any sketch trying to use that convenience library also will not compile.
It would be useful to know more about this. Is this a matter of the Arduino IDE support libraries having yet to support a pin change interrupt scheme or is the Uno R4 dead in the water in regard to this matter?
First, thank you for all the time you spend on educating us "arduweebs" I just started obsessing with my R4 recently. A general question please, has anyone come up with a chip (IC) identification application that identifies a DIP/SMT by taking a picture of it? Otherwise what is the best IC identifier you may use? Thanks again!
At 40:05, that's the same thing I do for the Pico. I put the secrets file in the Pico itself. I see so many coders repeat adding it to the main code over and over. WHY!? We're suppose to keep it simple!
Thanks
And thank you as well!
Hi I got a question about teensy 2.0 ++, I am currently looking for a Bluetooth or Wi-Fi, I am currently using the board for gaming, like the Azeron gaming controller
Hello, The CAN Bus transceiver chip is the SN65HVD230 / ..231 / ...232 instead of the "SN65HVD3230", isn't it?
Yeah, that's what I came up with too. Looks like there should not be the '3' after the 'D'. It would have been handy to provide a link in the description. Also, for hooking up to some current vehicles (2023 Harley-Davidson Heritage, for one) need the FD variant of the transceiver. I wonder, too, if the controller library would support the FD, as well. I just started tinkering with CAN, so am still trying to identify what it is I need to learn.
Hi Bill : I hope you make lots of money from your videos. To me, they are priceless.
What’s the “infinity” chip?
can we use Arduino uno R4 as USB host without extra hardware like USB host shield?
is arduino uno R4 has usb host capability ?
if yes, can you please make / guide towards a tutorial on how to use Usb Barcode/QR code scanner with Arduino uno r4?
thx
I wonder where the decision to use 8ma instead of 20ma for the pins came from...
It's a restriction of the Renesas microcontroller used in the design. It was designed with power consumption in mind. However I can see it causing a lot of problems with makers, especially as other boards like the ESP32 don't have such a restriction. Of course, to be fair, the RP2040 is also pretty restrictive as far as output current goes.
To #Arduino, or to not #Arduino. There is no question. Arduino is a *verb* and an *adverb.* ⚡
In case power goes off, how can I don't lose track of my rtc? Wehre do I connect an external power? Can I get the time and date updated from the internet? Thanks.
👍👍
I would like to visit your site/forum again. I'd like to know have you gotten rid of the gatekeeping trolls?
Until then it's hard to support you.
I came there last year looking for a serious answer and I was mocked and shamed enough to leave.
I started with basic stamp😅
Good~
Explain Arduino very much tanks
WOW you said Dhrystone and I was sent back to the 1990s.
How are you doing with those wildfires, Bill? Hope all is ok
Let's just say I'm glad we have seven air cleaners in our house!
I went to see if I could find a shirt to order in your store (to support you). Problem is, where are the long sleeve shirts? It's cold where I live and a nice, quality long-sleeve is needed. 73 :)
इस से क्या क्या प्रौजेक्ट बन सकतें हैं,और बनाये जातें हैं उसकी सम्पूर्ण जानकारी कहां से प्राप्त हो सकती है
Two things...
1) Just in general, I love the details in your content, so thank you.
and more specifically about this video...
2) WHAT IN THE WORLD were they thinking having the CAN Bus on different pins for the two boards!? It's such a silly and stupid incompatability to have!
If for some reason they couldn't use pins 4 and 5 on the WiFi board, then they should have used pins 10 and 13 on the Minima.
As things are, any CAN Bus shield ever created will have to either be specific to the board subtype, or else tie up all 4 pins to cover off both situations [SMH]
arduino products are even late to do this update
The dhrystone benchmark algorhythm is very old, but the sketch itself isn't.
soo esp32 is better than arduino uno r4 ?
I am surprised the R4 is not an 8 bit micro. Great video Bill, thanks.
ta falando comigo?😍
I don't understand Microcontroller on a microcontroller what is the point here and s3 is powerful than Arduino ( i don't know maybe i am wrong)
Maybe try to increase base volume of your voice, as its always way less loud than all other videos.
je préfère l'esp32 s3 , Arduino à réagit trop tard et même en réagissant il se trouve en dessous niveau spec ! , donc je reste sur eps32 s3 et Lora
puis garder le nom Uno pour une puce totalement différente d'un AVR8 c'est se tirer une balle dans le pied en terme de retour utilisateur, spécialement pour un produit qui s'adresse aux débutants.
It's not worth it. Esp32 c3 is superior and alot cheaper
how come?
Seeeduino xiao esp32c3 is sooooooo much smaller too. I highly suggest the board
@@donkeypoopdragon Yes, I've been meaning to pick up a few of those boards, they look pretty neat (unless you require a lot of GPIO pins)
I find esp32s quite difficult to work with sometimes
I'm an ESP32 fan boy. If I just need a couple of pins and a simple sketch I'll use an ATtiny13A or 85. But if I need many pins then it'll be an original ESP32 or a C3. Generally I'll use a devkit for testing and then a module for the PCB to save some space.
I'm picking up the R4 minima to hack my car.
👍🇧🇷👍🇧🇷👍😍😍😍
The reason I would not buy one is due to the fact that it only does 2..4GHz, and not 5GHz
What other micro's have 5GHz wifi ?
Most of the wi-fi cameras for home are also 2.4GHz (the signal has more range than the 5GHz).
I think we'll have to wait another year or so before everything moves to 5GHz.
@@nccyr1 - I was referring to the Arduino, not the camera.
@@tubeDude48 I know but I used the camera example to illustrate that the small SBC/embedded /consumer IOT world is still stuck in the 2.4GHz world.
@@noweare1 They plan to support dual band WiFi 6, i.e. 2.5GHz and 5GHz on the ESP32-C5 (announced in 2022). it looks like there are many issues to resolve: possibly: signal range , power requirement, heat...
It's too bad Arduino couldn't really innovate in any interesting directions with the R4. With production runs in the millions they had a chance to really scale something. They could have gone the robotics route and included on-board brushless DC controllers, and/or image rec GPU, they could have gone the comm route and included LORA, LTE, GPS or even lidar, hell, they could have even gone audio (somewhat useless to anyone but synthheads but oh well) and put in some 24bit DACs.
But Arduino didn't do anything, they just put in slightly faster processors, which unlock basically nothing, pity.
Having ESP on board for Wifi and/or BT purposes (only) seems a bit of bad design. Waste of a powerful MCU, or, having 2 MCUs on board... Who authorizes those designs.. Thanks for the video.
TBF having an Atmega8u2 (or 16u2) dedicated to the usb feature on the previous Uno was already a huge waste.
god bless canada post, but theyre still better than Purolator
Sir, do you live where Amazon drones dare not go?
Normally they are pretty good, but our regular mail carrier is on vacation and they keep sending in new people. I saw one a few days ago actually empty his mailbag and sort it on one of my neighbors lawn!
He only replies if you give him money, thats a shame.
I'm vikas, from india
I want to say thank you for this free channel
Well i want to meet you if possible I'll come from india so..❤
Valeu!
Thank you so much!
@Dronebotworkshop I just want to ask how to join the forums? I sent an email a long time ago, but have not seen any invite. Can we make it happen if I send another email?
Check your spam folder. Keep sending emails