I use an Arduino leonardo on a two-stroke vehicle and it vibrate a lot. The 32u4 freeze totally (no watchdog reset possible) on a regular basis.
Hardware used :
- Arduino Leonardo
- A power shield to drive a DC motor (PWM)
- Both board soldered together
- Xbee interface with bluetooth module (xbee socket not soldered)
The bluetooth is connected to a smartphone, and it stay connected even when the leonardo hangs, but no more data is transmitted.
Initially, I thought it was the pwm that generates noise and freeze the leonardo, but I disconnected everything from the vehicle (sensors, dc-motor, 12v power) and I only used a small "power bank" connected on the usb port to keep the leonardo alive. It still freeze on a regular basis when the vehicle revs high (13000 rpm).
The whole setup is packed in foam (used to transport sensitive equipment in cases).
I tried with 2 different setups (other arduino leonardo design, other power shield design, other case, socket connector or direct soldered) and it's even worst with the nice automotive case and everything soldered.
I am out of ideas to make it work, do you have any suggestion ?
Additional hint : the two-stroke vehicle generates high-voltage for the spark plugs, but I'm skeptical about this source of trouble. In early tests, the amount of freeze was reduced by avoiding to zip-tie the cables too close to the arduino and simply let it free.
Thank you and I hope someone can help,