Arduino Forum

Topics => Robotics => Topic started by: fradv0695 on Dec 12, 2017, 03:08 pm

Title: [Solved] Student First Project - Self Balanced Car
Post by: fradv0695 on Dec 12, 2017, 03:08 pm
Hi everyone!
I am a graduate student of computer engineering and, for my thesis, I am doing an internship this Sel-Balanced Car (http://www.instructables.com/id/Making-a-Mini-Self-balancing-Car-in-Two-Steps/#step3).
The goal of my training is to establish a wireless connection between Arduino and Matlab, so as to make it to the latter some features of the demo (such as the Kalman filter). First I've tried to replace the Iteaduino UNO with the Arduino Yùn, but this wasn't able to withstand the 12 volts necessary to power the DC motors.
I wanted to know if keeping the Iteaduino UNO and, in addition to the Stabilizer Shield, using a Yùn Shield (to allow the wireless connection) this could modify the code or not and, if so, what would you suggest doing?

(the code in Arduino.txt was initially written for Arduino Yùn board)
Thank you for your time.
Title: Re: Student First Project - Self Balanced Car
Post by: vinceherman on Dec 12, 2017, 03:45 pm
Quote
I've tried to replace the Iteaduino UNO with the Arduino Yùn, but this wasn't able to withstand the 12 volts necessary to power the DC motors
This statement worries me.
Why would the arduino ever see motor power?  I would think that only the motor driver and the motor ever see motor power.  The arduino should only be powered with regulated power, either from a regulated source, or through the on board regulator, which in turn is powered by a source in the appropriate range.
Title: Re: Student First Project - Self Balanced Car
Post by: fradv0695 on Dec 12, 2017, 04:52 pm
arduino yùn does not have a voltage regulator like the other boards, so it can only be powered with a voltage of 5 volts (otherwise it would burn).
Title: Re: Student First Project - Self Balanced Car
Post by: jremington on Dec 12, 2017, 05:41 pm
You can buy a voltage regulator (https://www.pololu.com/category/131/step-down-voltage-regulators).
Title: Re: Student First Project - Self Balanced Car
Post by: fradv0695 on Dec 12, 2017, 06:09 pm
I had already thought about it (even if I do not know how to mount it on the board), but I can not make structural changes on the boards, because they are owned by the university. Could you answer the question I asked you in the first topic, please?
Title: Re: Student First Project - Self Balanced Car
Post by: fradv0695 on Dec 22, 2017, 08:00 am
Hello everyone!
I managed to solve the question on my own.
Thanks anyway.
Title: Re: [Solved] Student First Project - Self Balanced Car
Post by: MarkT on Dec 22, 2017, 10:04 pm
Control loops have to be fast with constant low latency to be stable - talking back via WiFi to Matlab sounds like
a way to produce variable, unreliable, high latency step in the control loop, which isn't going to work well.  The main control
loop should be local to the Arduino and run at a suitably high rate, several hundred Hz or so. Or perhaps you
meant that tuning and learning is off-loaded to host machine?