Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Last year ST released the STM32U0 line of chips boosting some nice features https://www.st.com/en/microcontrollers-microprocessors/stm32u0-series.html. I like what I am reading has anyone made use of them @umeshlokhande @josephogbonna I am considering switching from the L0 to the U0
one adc, one basic timer and one general timer. Thats very small you do almost single function systems?
It actually has more than that
It has one dac, six usarts, three i2c, two spi, 18 capacitive sensing channel
https://estore.st.com/en/stm32u031c6u6-cpn.html
i actuall Havent used a capacitive sensibg
oooh i guess you can use this to implement a touch controller
Yeah yeah something like that
Capacitive sensing is such a cool feature. That being said, if your microcontroller doesn’t have it built-in you can typically get it to work via external resistors. Which is kind of inconvenient, but fairly inexpensive.
For example, I made this board to add touch sensitivity to the Raspberry Pi Pico: https://www.tindie.com/products/jeremycook/pico-touch-2-raspberry-pi-pico-capacitive-touch/ (which works well, though I haven’t sold a lot, ha)
OTOH, this technique allows you to use capacitive sensing on the ATtiny series (without an external resistor): https://embeddedcomputing.com/technology/software-and-os/ides-application-programming/attiny85-capacitive-touch-sensing-sans-external-resistors though I’m not sure if it has touch sensing as an official feature.
This is nice @jeremycook. I’ll give it a try
The resistor method (~1M resistors etc) is pretty cool. It charges a pin up as high, which has a certain amount of capacitance by itself, and is connected to ground through a large-value resistor. IIRC, it then sets itself to an input, which initially senses the pin as high/1. However, the large-value resistor connected to ground (and the output) slowly (in microcontroller terms) lets the charge drain out until the pin reads low. Adding your body (finger etc) on the pin in parallel with the resistor adds capacitance to the system, changing the rate of discharge (how long it takes to go low) which can be detected as an input.
So in theory, any microcontroller that can assign pins an output or input should be able to be used as a capacitive input with the addition of a resistor. This is all from memory though, so take that for what you will… Of course, if the chip HAS capacitive sensing built in, then that makes things a bit easier!
CONTRIBUTE TO THIS THREAD