Pages: [1]   Go Down
Author Topic: Interference from motor driver  (Read 1230 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys, I'm using a Pololu motor driver with the VNH2SP30 chip (http://www.pololu.com/catalog/product/706) to control voltage to a thermoelectric cooler and every time the driver comes on and sends current to the thermoelectric device my DS18B20 sensors start putting out incorrect readings. Notably, they drop by several degrees then fluctuate around. If I leave the driver operating and disconnect one of the leads to the cooler then the sensor readings begin coming back normal. I'm guessing this is some problem with the ultrasonic frequency making its way to the wires carrying the DS18B20 signal, so what can I do?

Thanks!
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34543
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'm guessing this is some problem with the ultrasonic frequency making its way to the wires carrying the DS18B20 signal,
It could be in which case add decoupling to the supply:-
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

On the other hand it could be how you have wired the grounds together. Make sure that the ground to your sensor is not caring heavy current from your cooling device.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The sensors ground to the arduino, which grounds to the power supply.
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34543
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes but it is how it is physically laid out that matters. It all has to be electrically at the same potential but if the sensor return ground is going through a wire that is also carrying the ground from a lot of current you get a slight increase in the ground voltage and it upsets readings.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The ground wire for the 2 DS18B20s only connect those sensors and go directly back to the Arduino and connect to nothing else.

I should note that this starts when the motor driver has a pwm input of only 2.5-3 out of 255... So it barely takes any input to start mucking the sensor readings up.
« Last Edit: January 03, 2013, 05:44:14 pm by FlyingSteve » Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34543
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So try adding the decoupling.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, so I switched the DS1820B's from power mode to parasite mode and now no issues with the motor driver. I was powering the DS1820B's from the 5V on the Arduino and the only other thing sharing that power line is a DHT22 temp/humidity sensor. Any thoughts?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34543
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I go back to decoupling. Add a 0.1uF ceramic cap across the power and ground as close to the DS1820B as possible.
You might also try a series inductor in the power line as well.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok, will try that. I guess I'm just confused as to why there is this interference when the 5V comes off the Arduino and has no other connection than to the DS18B20's.

Could it be the proximity of the motor driver to other wires, such as signal/power wires?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34543
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Could it be the proximity of the motor driver to other wires, such as signal/power wires?
Yes, direct pickup by wires is very possible. They act like antenna.
Logged

Pages: [1]   Go Up
Jump to: