Forum >Adjustable Infrared Sensor Switch goes nuts under load
ArduinoGeneral

Adjustable Infrared Sensor Switch goes nuts under load

userHead giannoug 2011-10-27 04:32:45 15441 Views19 Replies
I have installed 3 of the Adjustable Infrared Sensor Switches to my robot. When the robot is under load (e.g. when the motors are running and the robot is moving) all the sensors report that something is in range (sometimes the LEDs on the sensors flicker).

Batteries are full (2700mah and also tested with USB supply), motors are powered straight from the batteries (no regulator involved). I'm of course not using the same pins as the motor shield. Pins are set to INPUT. I'm using the analog pins.

Any help appreciated.
2011-11-05 11:44:18 [quote="Hector"]
Giannoug,


It seems these sensors are meant to be used with digital pins and not analog pins.
[/quote]

I thought about that too but it doesn't matter. The sensors also act weird even with the sensor pin unconnected.

[quote="Hector"]
Giannoug,


I found this wiki on reducing DC motor noise. I'm not sure if you can implement it on your project, but its probably a good read.


[url=http://www.beam-wiki.org/wiki/Reducing_Motor_Noise]http://www.beam-wiki.org/wiki/Reducing_Motor_Noise[/url]
[/quote]

Thank you, I'll give a look.
userHeadPic giannoug
2011-11-05 11:44:18 [quote="Hector"]
Giannoug,


It seems these sensors are meant to be used with digital pins and not analog pins.
[/quote]

I thought about that too but it doesn't matter. The sensors also act weird even with the sensor pin unconnected.

[quote="Hector"]
Giannoug,


I found this wiki on reducing DC motor noise. I'm not sure if you can implement it on your project, but its probably a good read.


[url=http://www.beam-wiki.org/wiki/Reducing_Motor_Noise]http://www.beam-wiki.org/wiki/Reducing_Motor_Noise[/url]
[/quote]

Thank you, I'll give a look.
userHeadPic giannoug
2011-11-04 19:25:22 Giannoug,


I found this wiki on reducing DC motor noise. I'm not sure if you can implement it on your project, but its probably a good read.


[url=http://www.beam-wiki.org/wiki/Reducing_Motor_Noise]http://www.beam-wiki.org/wiki/Reducing_Motor_Noise[/url]

userHeadPic Hector
2011-11-04 19:25:22 Giannoug,


I found this wiki on reducing DC motor noise. I'm not sure if you can implement it on your project, but its probably a good read.


[url=http://www.beam-wiki.org/wiki/Reducing_Motor_Noise]http://www.beam-wiki.org/wiki/Reducing_Motor_Noise[/url]

userHeadPic Hector
2011-11-04 18:18:15 Giannoug,


It seems these sensors are meant to be used with digital pins and not analog pins.
userHeadPic Hector
2011-11-04 18:18:15 Giannoug,


It seems these sensors are meant to be used with digital pins and not analog pins.
userHeadPic Hector
2011-11-04 06:06:32 The same thing happens when I hold the robot in my hand and try to slow down the motors. I'm pretty sure it's something about the sensors and the noise coming from the DC motors (btw, the same happens with servo motors). I'll try and upload a video later.

I've also tried playing with the sensitivity of the sensors but I couldn't find any document online to correctly guide me. I've configured them by trial and error.
userHeadPic giannoug
2011-11-04 06:06:32 The same thing happens when I hold the robot in my hand and try to slow down the motors. I'm pretty sure it's something about the sensors and the noise coming from the DC motors (btw, the same happens with servo motors). I'll try and upload a video later.

I've also tried playing with the sensitivity of the sensors but I couldn't find any document online to correctly guide me. I've configured them by trial and error.
userHeadPic giannoug
2011-11-03 21:45:55 Hi Giannoug,


It seems that your sensors might be too low to the ground, try bending the L brackets slightly so that the sensors don't point so low. They have a range and might be detecting the floor. You could also try reducing the sensitivity range of the sensor a bit.
userHeadPic Hector
2011-11-03 21:45:55 Hi Giannoug,


It seems that your sensors might be too low to the ground, try bending the L brackets slightly so that the sensors don't point so low. They have a range and might be detecting the floor. You could also try reducing the sensitivity range of the sensor a bit.
userHeadPic Hector
2011-11-03 05:02:53 Yeah, sure.

http://i.imgur.com/LBu7B.jpg

http://i.imgur.com/hI4UP.jpg
userHeadPic giannoug
2011-11-03 05:02:53 Yeah, sure.

http://i.imgur.com/LBu7B.jpg

http://i.imgur.com/hI4UP.jpg
userHeadPic giannoug
2011-11-02 18:30:44 Hi Giannoug,


Could you post a picture of your setup?
userHeadPic Hector
2011-11-02 18:30:44 Hi Giannoug,


Could you post a picture of your setup?
userHeadPic Hector
2011-11-02 14:58:55 Hi Hector,

First of all I'm using the DFRobot 4WD chassis (the one sold with encoders). It is powered from five Fujitsu HR-3UX 2700mah batteries. I'm also using an Arduino Duemilanove with a motor shield (adafruit motor shield clone) to control the motors.

Let's say I'm running a simple program that only setups the motors and make them run at full speed. Every motor is connected to one of the motor shield outputs.

At first, I was powering the motors straight from the battery pack through the shield connector. Another cable was going to the Arduino jack. When I power everything up and let the robot on the floor, the sensors start "sensing" without anything on their range.

I've also tried powering the Arduino from a seperate 9V battery. It helps alot but it doesn't solve my problem (it only reduces the effect).
userHeadPic giannoug
2011-11-02 14:58:55 Hi Hector,

First of all I'm using the DFRobot 4WD chassis (the one sold with encoders). It is powered from five Fujitsu HR-3UX 2700mah batteries. I'm also using an Arduino Duemilanove with a motor shield (adafruit motor shield clone) to control the motors.

Let's say I'm running a simple program that only setups the motors and make them run at full speed. Every motor is connected to one of the motor shield outputs.

At first, I was powering the motors straight from the battery pack through the shield connector. Another cable was going to the Arduino jack. When I power everything up and let the robot on the floor, the sensors start "sensing" without anything on their range.

I've also tried powering the Arduino from a seperate 9V battery. It helps alot but it doesn't solve my problem (it only reduces the effect).
userHeadPic giannoug
2011-10-30 06:53:36 Hi Giannoug,


Could you tell me a little more about your setup. What microcontroller are you using?


How are you connecting the sensors, motors, and what sample code are you using?? What is the voltage and amps rating for your batteries? are you using only one set to power everything? or two different power sources?


What motor controller are you using to drive your motors?

userHeadPic Hector
2011-10-30 06:53:36 Hi Giannoug,


Could you tell me a little more about your setup. What microcontroller are you using?


How are you connecting the sensors, motors, and what sample code are you using?? What is the voltage and amps rating for your batteries? are you using only one set to power everything? or two different power sources?


What motor controller are you using to drive your motors?

userHeadPic Hector
2011-10-27 04:32:45 I have installed 3 of the Adjustable Infrared Sensor Switches to my robot. When the robot is under load (e.g. when the motors are running and the robot is moving) all the sensors report that something is in range (sometimes the LEDs on the sensors flicker).

Batteries are full (2700mah and also tested with USB supply), motors are powered straight from the batteries (no regulator involved). I'm of course not using the same pins as the motor shield. Pins are set to INPUT. I'm using the analog pins.

Any help appreciated.
userHeadPic giannoug