Hi, I am new to electronics, trying to build a whac-a-mole machine based on this tutorial
Circuit of the tutorial
I am currently just working on one of the solenoid actuator, hoping to make it responding to the state of the limit switch.
Circuit of my attempt of making one solenoid work
This is the video of how mine (kinda) worked
https://drive.google.com/file/d/1C7QraJIU0L6SVUsiTP2VwbaIzERnTESl/view?usp=sharing
From the video, you can see the actuator is activated only when the switch is pressed, then after a few tries it is stuck (you can see the spring is compressed with or without switch being pressed ) . The code I used is AnalogInOutSerial from Arduino IDE's Example library.
Then I looked up to the DC power source, it dropped from 12V(the voltage required for solenoid) to 4V, I tuned it up, my motor drive starts smoking and my arduino cannot be recognized by the laptop anymore
My questions are:
1. For the switch, I connected the NC(normally closed) and C terminals. I assume it would be HIGH when not pressed and LOW when pressed, why is it the other way around? Is it has something to do with ACTIVE HIGH and ACTIVE LOW?
2. Why does my solenoid(p3) stops responding?
It's stuck at being activated. (In the later part of the video, you can see that the LED of motor drive actually dims as well, I am not sure if it has anything to do with the current)
3. Why do both of my motor drive and arduino is burnt?
Is it because I tuned up the voltage after it is stuck?
This is the components I used:
limit switch: https://www.amazon.ca/dp/B07YKGL61S?ref=ppx_yo2ov_dt_b_fed_asin_title
Solenoid: https://www.amazon.ca/dp/B01K41EZAU?ref=ppx_yo2ov_dt_b_fed_asin_title
Motor driver: https://www.amazon.ca/dp/B07YKGL61S?ref=ppx_yo2ov_dt_b_fed_asin_title
switch
and solenoid
//
PS: Thank you so much for your time of reading through this. I am new to electronics and is working on my first project, any material/ source that can help build a more systematic way of understanding would be really appreciated as well: D
Circuit of the tutorialI am currently just working on one of the solenoid actuator, hoping to make it responding to the state of the limit switch.
Circuit of my attempt of making one solenoid workThis is the video of how mine (kinda) worked
https://drive.google.com/file/d/1C7QraJIU0L6SVUsiTP2VwbaIzERnTESl/view?usp=sharing
From the video, you can see the actuator is activated only when the switch is pressed, then after a few tries it is stuck (you can see the spring is compressed with or without switch being pressed ) . The code I used is AnalogInOutSerial from Arduino IDE's Example library.
Then I looked up to the DC power source, it dropped from 12V(the voltage required for solenoid) to 4V, I tuned it up, my motor drive starts smoking and my arduino cannot be recognized by the laptop anymore
My questions are:
1. For the switch, I connected the NC(normally closed) and C terminals. I assume it would be HIGH when not pressed and LOW when pressed, why is it the other way around? Is it has something to do with ACTIVE HIGH and ACTIVE LOW?
2. Why does my solenoid(p3) stops responding?
It's stuck at being activated. (In the later part of the video, you can see that the LED of motor drive actually dims as well, I am not sure if it has anything to do with the current)
3. Why do both of my motor drive and arduino is burnt?
Is it because I tuned up the voltage after it is stuck?
This is the components I used:
limit switch: https://www.amazon.ca/dp/B07YKGL61S?ref=ppx_yo2ov_dt_b_fed_asin_title
Solenoid: https://www.amazon.ca/dp/B01K41EZAU?ref=ppx_yo2ov_dt_b_fed_asin_title
Motor driver: https://www.amazon.ca/dp/B07YKGL61S?ref=ppx_yo2ov_dt_b_fed_asin_title
switch
and solenoid//
PS: Thank you so much for your time of reading through this. I am new to electronics and is working on my first project, any material/ source that can help build a more systematic way of understanding would be really appreciated as well: D
Last edited:
