Friday, 19 May 2017

analog - Analogue Gauge with Arduino


How do you make / connect an Analogue gauge with Arduino?



Answer



The simplest analog gauge is an ammeter. Connect one end to an analog output pin, the other to the middle pin of a potentiometer, and another pin of the pot to ground. You'll need to tweak the potentiometer to calibrate the range of the output. Make sure that you measure the resistance across the ammeter and don't short out the arduino's output pin. You can use analogWrite() to move the needle.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...