4 ms·
Wow! Thank you HN! I have been trying to work with more than one time of flight sensor and an Arduino recently, and I fried them all (the sensors, not the Ardu
by bambax 6y ago
Wow! Thank you HN!
I have been trying to work with more than one time of flight sensor and an Arduino recently, and I fried them all (the sensors, not the Arduino).
Will study this in detail now.
- analog31 6y agoThat's too bad, the Arduino was probably the cheaper part. I have a technique which I use when bringing up new circuits and breakout boards for the first time, which is to wire resistors in series with all of the i/o pins. This will usually be good enough to limit current flowing through output transistors and protection diodes, so each device can tolerate minor mistakes in wiring or coding, 5 versus 3.3 V disagreements, or an errant scope probe touching the wrong thing. You can use rules of thumb for RC time constants to work out resistor values, but typically 1k for output lines and 10k for input lines have served me well as starting points.
- magicalhippo 6y agoIf you actually managed to fry the components, then it's most likely either 5V vs 3.3V (or lower) mismatch or static electricity. Not all modules sold have voltage translators built-in. These two for example seem to, but be aware of it. https://www.aliexpress.com/item/4000163323280.html https://www.aliexpress.com/item/4000163323280.html https://www.aliexpress.com/item/32966164006.html https://www.aliexpress.com/item/32966164006.html
- pantalaimon 6y agoThose 8-bit 5V AVR controllers are true relics these days. Get yourself a modern 32 bit ARM Cortex-M chip, it will be cheaper and much more capable than those Atmel dinosaurs.
- hugs 6y agoGatekeeping comments like that are not helpful. There are many beginner-friendly tutorials for 8-bit AVR chips, and many projects don't need the extra features of a 32-bit ARM chip.
- pantalaimon 6y agoAre those really tutorials for AVR chips or tutorials for the Arduino ecosystem? Arduino is not limited to AVR, there is no need to put up with the limitations of those aging chips, unless you are accessing hardware registers directly you can probably run the same software on a STM32 or SAM D board.
- hugs 6y agoI was specifically thinking of the ATtiny85 when I made my comment. A beginner's first electronics project is often blinking an LED on and off. When I'm teaching a room full of kids electronics for the first time, the simplicity and low-cost nature of the ATtiny chips are hard to beat. I get it, ARM chips are great for real projects, but there is still a place for 8-bit AVR.
- regularfry 6y agoI've literally just received a delivery of through-hole ATTiny85s and a programmer, so I can dead-bug an I2C interface onto an analogue sensor. I have no idea where I'd start looking for an ARM in anything like the same form factor.
- nereye 6y agoThere are through-hole ARM ICs, e.g. see https://hackaday.com/2013/05/29/programming-a-through-hole-arm-microcontroller/ https://hackaday.com/2013/05/29/programming-a-through-hole-a.... For example: https://www.digikey.com/en/products/detail/nxp-usa-inc/LPC810M021FN8129/12102361 https://www.digikey.com/en/products/detail/nxp-usa-inc/LPC81....
- krallja 6y agoThere were through-hole ARM ICs, but they are no longer in production.
- 6y ago