Page 2 of 2

Re: Using Arduino Programing

Posted: January 19th, 2016, 4:01 pm
by Bazinga+
I am using an esc brushless motor combo which is attached to and powers an arduino through the BEC , but I've had problems where the car speeds up and doesn't stop(I currently have it programmed to stop after a certain time). I noticed that if one of the connections (ground, voltage, or signal) disconnects, the motor will keep spinning and powering the vehicle for some time. Anyone know how to fix this?

Re: Using Arduino Programing

Posted: January 19th, 2016, 6:33 pm
by windu34
Bazinga+ wrote:I am using an esc brushless motor combo which is attached to and powers an arduino through the BEC , but I've had problems where the car speeds up and doesn't stop(I currently have it programmed to stop after a certain time). I noticed that if one of the connections (ground, voltage, or signal) disconnects, the motor will keep spinning and powering the vehicle for some time. Anyone know how to fix this?
What combo are you using? Have you programmed a brake in your Arduino code?
In regards to your second question, I really need to see a pic of your setup and/or your code to help you because that makes very little sense.
PM me or email me at Jazzin710@gmail.com

Re: Using Arduino Programing

Posted: January 19th, 2016, 9:22 pm
by Bazinga+
windu34 wrote:
Bazinga+ wrote:I am using an esc brushless motor combo which is attached to and powers an arduino through the BEC , but I've had problems where the car speeds up and doesn't stop(I currently have it programmed to stop after a certain time). I noticed that if one of the connections (ground, voltage, or signal) disconnects, the motor will keep spinning and powering the vehicle for some time. Anyone know how to fix this?
What combo are you using? Have you programmed a brake in your Arduino code?
In regards to your second question, I really need to see a pic of your setup and/or your code to help you because that makes very little sense.
PM me or email me at Jazzin710@gmail.com
Oh never mind. I'm using a skryrc 9 turn motor ESC combo, and I guess it automatically keeps running its last input if it loses connection to the arduino. Turns out I had a different problem. In the code I used a logarithmic function for a gradual speed increase and decrease, but I just copy pasted the speed up and forgot to change the numbers for the slowing down, so instead it ended up speeding up even faster. But still the car is so fast its scary. I measured its speed when it was going at barely a third max speed, and if was like 40 mph... Even a pillow barrier didn't prevent the car from getting damaged.

Re: Using Arduino Programing

Posted: January 20th, 2016, 8:21 am
by windu34
Bazinga+ wrote:
windu34 wrote:
Bazinga+ wrote:I am using an esc brushless motor combo which is attached to and powers an arduino through the BEC , but I've had problems where the car speeds up and doesn't stop(I currently have it programmed to stop after a certain time). I noticed that if one of the connections (ground, voltage, or signal) disconnects, the motor will keep spinning and powering the vehicle for some time. Anyone know how to fix this?
What combo are you using? Have you programmed a brake in your Arduino code?
In regards to your second question, I really need to see a pic of your setup and/or your code to help you because that makes very little sense.
PM me or email me at Jazzin710@gmail.com
Oh never mind. I'm using a skryrc 9 turn motor ESC combo, and I guess it automatically keeps running its last input if it loses connection to the arduino. Turns out I had a different problem. In the code I used a logarithmic function for a gradual speed increase and decrease, but I just copy pasted the speed up and forgot to change the numbers for the slowing down, so instead it ended up speeding up even faster. But still the car is so fast its scary. I measured its speed when it was going at barely a third max speed, and if was like 40 mph... Even a pillow barrier didn't prevent the car from getting damaged.
Ya I recommend setting aside a full weekend and hammering out the code; its going to take alot of trial runs and code tinkering to be able to properly control your setup.

Re: Using Arduino Programing

Posted: January 20th, 2016, 9:04 am
by Bazinga+
Nah the code is quite simple. It took me like a week to get the encoder code working , but for this I just made it speed up and slow down linearly.

Re: Using Arduino Programing

Posted: February 17th, 2016, 7:33 am
by windu34
Has anyone found that the code needed to run the many functions of the vehicle takes up too much space and CPU on the arduino? I have decided to split my code up inoto components to multiple arduinos in orderto smoothly run it using arduino master slave connections.

Re: Using Arduino Programing

Posted: February 17th, 2016, 5:24 pm
by Bazinga+
windu34 wrote:Has anyone found that the code needed to run the many functions of the vehicle takes up too much space and CPU on the arduino? I have decided to split my code up inoto components to multiple arduinos in orderto smoothly run it using arduino master slave connections.
I don't see any point in having 2 arduinos. I've figured out how to make sure the program runs smoothlyand on a regular arduino uno (took a looot of trouble shooting), and I doubt that will fix it. I tried running everything from an arduino DUE (specs are all like 10x better than uno) and still had the same problem so the issue is the program not the processor (an instrument is only as good as its musician). I'd definitely start with Google.

Re: Using Arduino Programing

Posted: February 17th, 2016, 7:37 pm
by finagle29
windu34 wrote:Has anyone found that the code needed to run the many functions of the vehicle takes up too much space and CPU on the arduino? I have decided to split my code up inoto components to multiple arduinos in orderto smoothly run it using arduino master slave connections.
Might be an indication that you're overcomplicating the problem: keep it simple silly. Although modularization across arduinos is an interesting challenge, is it worth the effort and can it perform as well as smaller, simpler code on one arduino?