3 ms·
This guide should point people at a better board than an Arduino Uno. At least recommend something with a 32 bit processor. This board looks good for a beginne
by skybrian 5y ago
This guide should point people at a better board than an Arduino Uno. At least recommend something with a 32 bit processor.
This board looks good for a beginner since it has interesting sensors built in:
https://www.adafruit.com/product/3333 https://www.adafruit.com/product/3333
Shopping for electronic parts is kind of involved actually. It seems like a kit with a bunch of basic electronic components would be a good idea.
- RealityVoid 5y agoI think the critical part is not the 32bit thing, but the lack of a proper JTAG debugger on the arduinos. A debugger would give much better insight to what is happening on the board and the moment I saw a proper debugger and was able to step from the first instruction to my code was the moment I "got" microcontrollers. I know a lot of people hate debuggers, but the information they provide is extremely useful.
- flyingcircus3 5y agoI think Arduino hardware is a great place to start with embedded, specifically AVRs and avr-gcc. For one, there is a huge amount of daughterboards/shields because of the size of the userbase and common pinouts. Most importantly, devices like the ATMEGA328 (probably the most common arduino chip) are much simpler/smaller than just about any ARM device. There are less than 100 peripheral registers in an ATMEGA328. The peripherals have far less options, and are simpler to configure. You can also do real debugging on AVRs. I believe its not actually JTAG, but you can still use breakpoints, watch variables, inspect memory, and step through code.
- joshvm 5y agoIt's called the Program and Debug interface and uses two wires (PDI/O). That's for xMega though. There's also debugWire (one wire). But many chips also support JTAG as well (for both programming and debugging as opposed to using the ISP). https://microchipsupport.force.com/s/article/On-chip-debugging-with-AVR https://microchipsupport.force.com/s/article/On-chip-debuggi... The official 328 breakout board uses debugWire I think, but you get a nice USB interface. I recommend the dev boards, they're very cheap and quite capable (all pins broken out, prototyping areas, usually a few LEDs and you can use the debugger). They also have a footprint for arduino Shields! https://www.microchip.com/en-us/development-tool/ATMEGA328P-XMINI https://www.microchip.com/en-us/development-tool/ATMEGA328P-... Watching variables is flaky in my experience, but hardware breakpoints and memory inspection work fine.
- rcxdude 5y agoYou can do debugging on AVRs, it's just not generally exposed in arduino products (neither the hardware nor the software).
- skybrian 5y agoAs a relative beginner with the Arduino API, I never have a reason to poke at registers directly and use print-based debugging over the serial port. It seems like getting to "blink an LED" early is important for a reasonable "getting started" experience? I'd like to have a real debugger, but it looks awkward to set up compared to just plugging a microcontroller into a USB port.
- RealityVoid 5y agoStm32 dev boards. They have on board debuggers. Just plug em in and debug. Bring up is painles with cubemx. Very powerful and fast. My go to for fast prototyping.
- flyingcircus3 5y agoThe "curse" of the Arduino software is that the libraries abstract away the registers. So you get the quick satisfaction of blinking an LED, but you're never forced to dig in to what those libraries are actually doing to make the LED blink. In my opinion, this model leaves you dependent on other people providing libraries. If you eventually want to move on to other microcontrollers, you'll have to be able to read and understand the data sheets, and understand how the registers configure and operate the peripherals. While a debugger is helpful, you can still work at the register level without one. You can simply print the register values to the serial port. In fact, if you wanted to, you could create a serial console that would allow you to set the registers over the serial port.
- unwind 5y agoThat is one sweet board, and it might be a good starting point. It is, in my opinion, rather intense/complex, which might scare people off. For something leaner and more "clean", while staying with Adafruit, their take on the RP2040 might be good [1]. The official Pico [2] is still just $5, which might make it an easier buy for some. For something even smaller, I rolled my own ATtiny214 [3] board but it's not presentable at the moment (and it's slightly more "hardcore" since it's not programmable over straight USB). Also, it's of course dropping down back to 8-bit land again. [1]: https://www.adafruit.com/category/875 https://www.adafruit.com/category/875 [2]: https://www.adafruit.com/product/4883 https://www.adafruit.com/product/4883 [3]: https://www.microchip.com/en-us/product/ATTINY214 https://www.microchip.com/en-us/product/ATTINY214