I'm using the board atmega 32u4 as Aduino Leonard.
I want to control the on/off of the another element
When connected to the 5v output pin and the gnd, it operates normally.
It does not work if i use pinmode on the digital pin. Use analogRead() to read the voltage.
The digitalWrite(pin,HIGH) state's output is 1023 when i don't connect element.
As soon as i connect the element, the voltage value drops to 23 and the element does not work.
Conversely, connect the + of the element to the 5 V output pin and - of the element to the digital pin and using the digital pin as the gnd
I tried, but it also doesn't work.
Can i control gnd pin? or 5v pin? or is there any other way??
The element also operates on a 1.5v battery.
The element is peltier.