| Electronics > Beginners |
| Need help with project involving arduino and H bridge + motor |
| (1/2) > >> |
| paulhm81:
Hello. I plan on using a car wiper dc motor with a car jack to open a big trap door that leads to my basement where I have my workshop and to control the bridge using an arduino uno and two swithches to initiate the movement. I'm thinking on building an H bridge to control the motor and contact switches to limit the movement but I have a concern. What if a contact switch doesn't work after a wile given that it will be outside ( not in the rain). I was thinking about the car windows and how it detects when something is stuck. I thought about using a shunt to measure the current provided to the motor and program the arduino to stop if it exceeds a certain current but i'm unsure how to do it and wonder if there's a simpler method that I haven't thought of!? I researched the net and found out about ad623 to translate the voltage drop to something usable and I also read about using a bjt to make the arduino compatible with the 12 v H bridge P channel part. Do any of you have an idea of a simpler way to do this? |
| rstofer:
I would consider a High Side Current Sense Amplifier along with a shunt resistor in the + supply to the H bridge. http://www.st.com/content/ccc/resource/technical/document/datasheet/group2/df/85/34/d4/87/18/46/87/CD00153725/files/CD00153725.pdf/jcr:content/translations/en.CD00153725.pdf Google for 'high side current sense amplifier' |
| paulhm81:
--- Quote from: rstofer on June 04, 2018, 12:57:48 pm ---I would consider a High Side Current Sense Amplifier along with a shunt resistor in the + supply to the H bridge. http://www.st.com/content/ccc/resource/technical/document/datasheet/group2/df/85/34/d4/87/18/46/87/CD00153725/files/CD00153725.pdf/jcr:content/translations/en.CD00153725.pdf Google for 'high side current sense amplifier' --- End quote --- That sounds interesting. I will search for a dip equivalent because I prefer through hole. What I don't get from the datasheet is what resistance should I use for the shunt but I presume the output to the microcontroler will determine what I need! |
| FL0WL0W:
As an alternative simpler solution. A relay and fuse should work. |
| rstofer:
I'm not actually designing your circuit but if you look at Figure 16 in the datasheet, the sweet spot of accuracy occurs with Vsense = 50 mV. So, size your shunt resistor to drop 50 mV at full current. Then look at Figure 17 for 50 mV and a gain of 100 (TS101C) to see where you will have a 5V output. You may want to design away from these values to allow for overcurrent or you may want to adjust the offset and range with another op amp. Maybe you want to get to 50 mV with stall current, and so on. You could also cut back on the gain with a TS101B so you would have 5V output at 100 mV Vsense. This way full load current could be at 50 mV and overload at 100 mV. You might still want to protect the AD inputs with zener diodes to prevent overvoltage. In doing this, you may need some series resistance at the sensor output so that you can clamp the voltage without melting the sensor. Keep the value as low as possible to avoid source impedance problems with the AD input. And so on... |
| Navigation |
| Message Index |
| Next page |