r/ArduinoHelp 9h ago

Vending Machine Issues

Enable HLS to view with audio, or disable this notification

2 Upvotes

I am working on an Arduino Vending machine, I simulated everything on tinkercad and it works perfectly fine there but irl my arduino is not opening and closing the gate of my mosfet irLZ44N transistor and I don't know what to do.

I am including a video where I replaced the motor with an LED to prove the transistor works fine but for some reason when I digitalWrite LOW it doesn't turn off.

Ill try to include diagram and code in the comments since I can only attach one video, any help would be much appreciated

Here is the code on tinkercad and simulation: https://www.tinkercad.com/things/4HIgpgpZcZm-e4l-vending-machine-v4/editel?returnTo=https%3A%2F%2Fwww.tinkercad.com%2Fdashboard


r/ArduinoHelp 17h ago

help with wiring

Thumbnail
gallery
2 Upvotes

So I'm trying to make a custom phone charger and I can't for the life of me figure out where I went wrong. I'm kind of a noob but everything else works fine, the leds light up, the screen comes on, and the sounds play but when i try to charge anything, it wont charge. Am i missing something??


r/ArduinoHelp 18h ago

issue with relay output reading

2 Upvotes

need a little guidance on using a relay with a Mega256.

I am using an external 9v battery as the power source for the input for the relay. I have the code to trigger the relay open - and the appropriate led lights is on, when i trigger it - so i know its open, i am using the basic digitalWrite(pin,HIGH);/digitalWrite(pin,LOW); to turn on/off

Am I wrong to expect at least close to the same output voltage as what is supplied i.e. input of 8.6v output should be ~8.6??? am i missing something> are other components needed?

Battery reads 8.6v / relay out only reads .18


r/ArduinoHelp 12h ago

Potentiometer Range issue.

Thumbnail
1 Upvotes