You are here

when speed of vesc motor too fast and the arduino pin signal is unstable

4 posts / 0 new
Last post
HumorLogic
Offline
Last seen: 3 years 2 weeks ago
Joined: 2021-04-06 12:14
Posts: 2
when speed of vesc motor too fast and the arduino pin signal is unstable

Hey guys,

I am making a vesc  four-wheel-robot. Use arduino mega 2560 as low-level controller and  Raspberry Pi as high-level board. Arduino board has a magnet sensor to sense magnet signal, uses low level trigger interrupt .

When I test , I found that When the car reaches faster (vesc duty 0.1) , the arduino pin work affected . Not sense magnet but pin has low level signal. I tried use 10K  pull-up resistor  and  triode,it works a little bit well than before , but when speed upper error detection still occurs. 

Can anyone give some tips?

robot.jpg

 

vadicus
Offline
Last seen: 2 days 9 hours ago
VESC Free
Joined: 2018-08-17 07:26
Posts: 427

How do you power the sensor? Is the sensor on the Arduino board? If so, I would move the sensor off the board and keep Arduino away from the motor to minimize interference from the motor. For the interrupt to work, you may want to add a 0.1uF cap signal to the ground to control noise.  

 

 

NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)

HumorLogic
Offline
Last seen: 3 years 2 weeks ago
Joined: 2021-04-06 12:14
Posts: 2

vadicus, thank your replysmiley. The magnet sensor's power is 1~3W(DC 10-30V ,current 100mA). I use main 36V battery and two power buck module give sensor power(3V 400mA) and Arduino(12V). I will try your cap suggest.powerduck.png

 

woliam
Offline
Last seen: 3 years 2 weeks ago
Joined: 2021-04-10 15:10
Posts: 1

Nice project, my brother is a specialst too, he was trying to find a resume. service to get a well-paid job. He tried these guys topresumewritingservices.com and now he can prove that this is the best resume service online