Hi everyone,
Im working on a project called as smart Helmet for motorcycles
using an arduino taking readings from the motorcycle (kms, temp, fuel level etc )and connected to the smartphone app through bluetooth and displaying all the information after calculations on the helmet Visor in the Form of HUD display (transparent)
im almost done with the hardware part but the problem im facing is when i bring the arduino board and all that project with the 16x2 Lcd on the breadboard near(not physically connected to the motorcycle just near to it ) to my Motorcycle (YAMAHA YBR 125 ) the arduino and the display gets disturbed when the engine is started . dont know due to electromagnetic induction of emf disturbing it . cant find anything on the internet regarding this .
the problem only arises near to my YAMAHA YBR 125 , but not with any other motorcycle i tried with for example Honda CD 70 , Or suzuki Gs 150.
i need help what should i do ?
i attached a link that contain videos showing the issue im facing . please help
I would try cable chokes, resistors on sensor input wires, diodes on the power and ground wires and maybe some caps on the the main power rail/ de-coupling caps on the board vcc pins. Also if your breadboard is vibrating from the motorcycle motor it will cause loose/bad connections. And obviously don't wrap the sensor/power wires around the ignition coil/wire
i tried multiple times .nothing is loose and nothing is near to the ignition coil or the spark plug wire .
and im not much good with electronic components i dont know which values of caps or diodes to use and where i just copied projects and circuits diagrams from the internet and make them together into a single project
the problem i face is with the Yamaha YBR 125 not with any other
have you seen the videos on the link ?
can you please guide me how to fix this and what values of components to use and where ?
ill be really really thankfull
Does the arduino crash or just the lcd screen? Add a serial print in the background and check if its still printing when the screen crashes. If the arduino is crashing and there is no physical between the two and its not from vibrations then i cant help you
for the power source i tried a 9v adapter from the wall socket and second i tried 5v from the usb cable from a phone charger and third 5v from a powerbank and got same result on all three.
i will try the serial print and check is the arduino breaks down or the lcd then ill let you know the results after a few hours
zainismail:
for the power source i tried a 9v adapter from the wall socket and second i tried 5v from the usb cable from a phone charger and third 5v from a powerbank and got same result on all three.
i will try the serial print and check is the arduino breaks down or the lcd then ill let you know the results after a few hours
How are you getting reading from the sensors on the bike? what is powering that?
im using a hall effect sensor on the wheel for reading the KMS and ODO , Potential divider circuit for the fuel gauge and a simple temperature sensor on the engine. But those sensors arn't even installed on the Motorcycle and even disconnected from the arduino
i tried measuring the magnetic field near the bike using an app downloaded from the playstore on my android phone .
i measured the following reading near the ignition coil , engine and spark plug
Measured around 100 to 107 on the Honda CD 70cc
measured Around 100 to 110 on the Yamaha YBR 125cc
but one thing i noticed was my phone screen had horizontal lines on when i moved it closer to the engine. it looked like the display was getting disturbed or something, felt like the display cable was broken or something when i accelerated the engines the lines grew higher when the phone was away from the engine everything went normal.
and observed normal behavior around other vehicles.
zainismail:
but one thing i noticed was my phone screen had horizontal lines on when i moved it closer to the engine. it looked like the display was getting disturbed or something, felt like the display cable was broken or something when i accelerated the engines the lines grew higher when the phone was away from the engine everything went normal.
and observed normal behavior around other vehicles.
Wow your bike seems like a member of transformer family ..... Btw you should definitely keep your mobile away from it or you may need to buy a new one.
It's clearly a case of Electromagnetic Induction as when you bring magnet near a TV the electrons distort.
One solution you can try is making the GND of your Arduino Battery & Bike Battery common or you can power your Arduino directly from the Bike battery, you may need to design small circuit to drop voltage to 5V, you can use LM7805 for that.
What is the part number for the spark plug in the motorcycle? If there's a resistor plug variant of that base part number, that might help suppress electromagnetic interference at the source.
zainismail:
have you seen the videos on the link ?
Your videos are pretty useless. Out of focus and you move too much. I doubt anyone can see what you are experiencing.
You have been asked this before, but how are you powering the breadboard? Battery or motorcycle power bus? If it's the latter, I would suspect dirty power. If the former than you are possibly picking up noise radiated by the motorcycle.
If you get an old AM radio receiver and tune it to a space between stations, you may hear a lot of noise from the ignition system. If you hear noise, that is your problem. Compare this with other motorcycles.
I would guess that if you hear noise from your motorcycle but not others, you probably have an unshielded, unfiltered Kettering spark system. The other motorcycles could be well shielded or using electronic ignition systems. the Kettering technology is more than 100 years old, but it just works. It is so reliable that it is required in some piston aircraft engines. Now we are getting into my experiences. Aircraft comm radios are AM radios and susceptible to the same noises as your AM entertainment radio. When an aircraft radio picks up ignition noise it is almost always one of three sources. A failing capacitor in the distributor (or a cracked distributor cap), sometimes a break in the shielding of the spark plug wires or a cracked spark plug.
You can also reduce the number of "antennas" on your breadboard which are picking up the noise from the motorcycle. When you make a PCB and use shielded cable to the display, you may see the problem disappear. As stated before, use bypass capacitors liberally. (If you ever look at the back-side of a PC motherboard, you will see lots of bypass capacitors all over the board). The value of the bypass capacitor depends on the frequency of the noise that you are getting. Without seeing the noise on a scope, I would suggest 0.01uF capacitors at every point where the power connects. (Within reason).
im powering the LCD and hall effect sensor from the breadboard which is powered by the 5v and GND pins on the arduino .And the arduino is powered by 5v (power bank / laptop USB port)
OK so i tried taking the serial output on a laptop and did the same test again and found out that the LCD displays out as before but the arduino keeps working as it sends sensor data through the serial output on the laptop
One thing i noticed that the Hall effect sensor (used to read the rotation of the wheel) was picking up some magnetic field .as speed was being calculated and displayed on the laptop. which only happen if i bring a magnet close to it .but in that case there was no magnet nearby but still the sensor was picking up some magnetic field .
So i removed the hall effect sensor's data wire from the arduino board . and the speed went zero on the laptop. but the LCD still displayed out .
then i put that wire back in and disconnected from the sensor side and i found out that it was not the sensor picking up magnetic field but the wires are .maybe they are acting like an antenna or something .
then i tried removing and disturbing some wires on the LCD and found the same error which happened after starting the engine ..
in my conclusion the magnetic field form the motorcycle is disturbing the wires of the LCD and the Hall effect sensor . which is causing all the problems . SO is there a way i can isolate the wires ? or another idea ?
How about i try using the LAN cable as it has some insolation inside or the laptop cable wires with the magnetic field absorber .instead of the regular arduino jumper wires ? will that work ?