Israel
Offline
Full Member
Karma: 0
Posts: 107
|
 |
« on: January 31, 2013, 05:03:59 am » |
I have an on/off foot paddle I want to connect to latching solenoid. When I press the peddle, I need to send a 100ms pulse to the solenoid. As long as I keep the foot down pressing on the peddle, nothing should change. When I take my foot of, I need to send another 100ms pulse. The solenoid will open when it get a positive 6VDC pulse and will close when getting a negative (-)6VDC pulse.
I don't really know how to start, but I know I don't want to use a microcontroller and I think a 555 timer can do the trick.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2282
|
 |
« Reply #1 on: January 31, 2013, 05:36:41 am » |
I don't want to use a microcontroller
So why are you posting in Arduino forums? 
|
|
|
|
« Last Edit: January 31, 2013, 05:58:51 am by fungus »
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25577
Solder is electric glue
|
 |
« Reply #2 on: January 31, 2013, 05:45:40 am » |
Use a h-bridge to drive your solenoide and a 555 as a monostable to generate the pulse. The pulse should do two things, enable the h-bridge and trigger a flip flop. The output of the flip flop should drive the h-bridge direction.
|
|
|
|
|
Logged
|
|
|
|
|
Israel
Offline
Full Member
Karma: 0
Posts: 107
|
 |
« Reply #3 on: January 31, 2013, 09:25:14 am » |
But how do I keep it from generating pulses when the pedal is kept pressed?
|
|
|
|
|
Logged
|
|
|
|
|
Cumming, Ga
Offline
Edison Member
Karma: 12
Posts: 1389
Ultimate DIY: Arduino
|
 |
« Reply #4 on: January 31, 2013, 09:52:39 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2282
|
 |
« Reply #5 on: January 31, 2013, 10:03:07 am » |
But how do I keep it from generating pulses when the pedal is kept pressed?
All this would be easy with a microcontroller, but noooo.... ] 
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25577
Solder is electric glue
|
 |
« Reply #6 on: January 31, 2013, 10:47:57 am » |
But how do I keep it from generating pulses when the pedal is kept pressed?
You wire the 555 up as a monostable, then you AC couple into it from your foot switch (attach it through a capacitor) then you will only get spikes that trigger the monostable when you press and again when you release.
|
|
|
|
|
Logged
|
|
|
|
|
Israel
Offline
Full Member
Karma: 0
Posts: 107
|
 |
« Reply #7 on: January 31, 2013, 11:22:52 am » |
AC couple?
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 278
Posts: 25577
Solder is electric glue
|
 |
« Reply #8 on: January 31, 2013, 12:00:22 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Israel
Offline
Full Member
Karma: 0
Posts: 107
|
 |
« Reply #9 on: January 31, 2013, 03:08:33 pm » |
Using a micro controller will take all the fun out of it ;-)
|
|
|
|
|
Logged
|
|
|
|
|
Anaheim CA.
Offline
Edison Member
Karma: 31
Posts: 2314
Experienced old Whitebeard with a Full head of Hair...
|
 |
« Reply #10 on: January 31, 2013, 07:03:11 pm » |
Fun... Hell man what you are talking about is hard work, the controller is easy
Bob
|
|
|
|
|
Logged
|
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
|
|
|
|
Israel
Offline
Full Member
Karma: 0
Posts: 107
|
 |
« Reply #11 on: February 01, 2013, 03:42:11 am » |
It might be easy but if I want to make many of these circuits, it means I have to prepare an ISCP connector on my PCB and upload a sketch to each unit, which is time consuming. I need it to be as small as possible since it needs to fit inside a foot pedal.
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2282
|
 |
« Reply #12 on: February 01, 2013, 04:08:53 am » |
It might be easy but if I want to make many of these circuits, it means I have to prepare an ISCP connector on my PCB and upload a sketch to each unit, which is time consuming.
a) Soldering a dozen extra components to a PCB is time consuming, too... b) https://www.adafruit.com/products/394
|
|
|
|
|
Logged
|
|
|
|
|
Israel
Offline
Full Member
Karma: 0
Posts: 107
|
 |
« Reply #13 on: February 01, 2013, 05:45:19 am » |
In the long run, an assembly house would do that for me. I really liked the pogo pins! Didn't know this solution existed 
|
|
|
|
|
Logged
|
|
|
|
|
Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2282
|
 |
« Reply #14 on: February 01, 2013, 07:03:07 am » |
In the long run, an assembly house would do that for me.
If you're producing on that scale then the cost of the parts/fabrication should be #1 priority. I'm not sure which would win though, you're only dealing with switches and digital signals so a microcontroller is hard to beat. Atmel makes some really, really small chips for simple jobs like this (six pins).
|
|
|
|
|
Logged
|
|
|
|
|
|