Microcontrollers
-
windu34
- Staff Emeritus

- Posts: 1384
- Joined: April 20th, 2015, 1:37 am
- Division: Grad
- State: FL
- Has thanked: 2 times
- Been thanked: 42 times
Microcontrollers
What are they used for specifically in electric vehicle? Can they be used to get adjust speed of motor or just keep track of time?
Last edited by windu34 on May 31st, 2015, 1:18 am, edited 1 time in total.
Boca Raton Community High School Alumni
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
-
Miske
- Member

- Posts: 3
- Joined: November 21st, 2013, 12:00 am
- Division: C
- State: MI
- Has thanked: 0
- Been thanked: 0
Re: Microcontrollers
Bump
Events I've Been In: Disease Detectives, Technical Problem Solving, Gravity Vehicle, Scrambler, Mission Possible, Air Trajectory, Robot Arm, Experimental Design, etc.
-
windu34
- Staff Emeritus

- Posts: 1384
- Joined: April 20th, 2015, 1:37 am
- Division: Grad
- State: FL
- Has thanked: 2 times
- Been thanked: 42 times
Re: Microcontrollers
This is microcontroller-specific and is not specific to EVUTF-8 U+6211 U+662F wrote:What is the difference between this and the EV thread?
Boca Raton Community High School Alumni
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
-
UTF-8 U+6211 U+662F
- Exalted Member

- Posts: 1597
- Joined: January 18th, 2015, 3:42 pm
- Division: C
- State: PA
- Has thanked: 6 times
- Been thanked: 15 times
Re: Microcontrollers
Okay then.windu34 wrote:This is microcontroller-specific and is not specific to EVUTF-8 U+6211 U+662F wrote:What is the difference between this and the EV thread?
-
bernard
- Administrator

- Posts: 2630
- Joined: January 5th, 2014, 11:12 pm
- Division: Grad
- State: WA
- Pronouns: He/Him/His
- Has thanked: 207 times
- Been thanked: 861 times
Re: Microcontrollers
I've only worked briefly with an Arduino Uno so I can't answer your original question about Arduino vs. Raspberry Pi, but I'll link you to two useful pages: ELI5: Arduino and Raspberry Pi and readwrite: Arduino Vs. Raspberry Pi.
For your new question: would adjusting a potentiometer connected to your motor(s) and power source be sufficient to vary the speed of your vehicle?
For your new question: would adjusting a potentiometer connected to your motor(s) and power source be sufficient to vary the speed of your vehicle?
"One of the ways that I believe people express their appreciation to the rest of humanity is to make something wonderful and put it out there." – Steve Jobs
-
windu34
- Staff Emeritus

- Posts: 1384
- Joined: April 20th, 2015, 1:37 am
- Division: Grad
- State: FL
- Has thanked: 2 times
- Been thanked: 42 times
Re: Microcontrollers
I initially tried that, but couldnt get it to work properly. Ill give it another try though.bernard wrote:I've only worked briefly with an Arduino Uno so I can't answer your original question about Arduino vs. Raspberry Pi, but I'll link you to two useful pages: ELI5: Arduino and Raspberry Pi and readwrite: Arduino Vs. Raspberry Pi.
For your new question: would adjusting a potentiometer connected to your motor(s) and power source be sufficient to vary the speed of your vehicle?
Boca Raton Community High School Alumni
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
-
TwelveSquared
- Member

- Posts: 8
- Joined: June 17th, 2013, 7:29 pm
- Division: C
- State: KS
- Has thanked: 0
- Been thanked: 0
Re: Microcontrollers
A common way in hobbyist robotics to get variable speed is by modifying a servo to act as a speed controller. It requires a bit more advanced programming to control than other methods, but can allow for very fine adjustments in speed.
Actually, that whole website is a good resource for robotics. I don't know how much of it applies to EV, since vehicle events aren't my thing.
Actually, that whole website is a good resource for robotics. I don't know how much of it applies to EV, since vehicle events aren't my thing.
Tonganoxie High School
Astronomy, Geologic Mapping, Robot Arm, Hydrogeology
Astronomy, Geologic Mapping, Robot Arm, Hydrogeology
-
windu34
- Staff Emeritus

- Posts: 1384
- Joined: April 20th, 2015, 1:37 am
- Division: Grad
- State: FL
- Has thanked: 2 times
- Been thanked: 42 times
Re: Microcontrollers
That sounds perfect! Ill try it!TwelveSquared wrote:A common way in hobbyist robotics to get variable speed is by modifying a servo to act as a speed controller. It requires a bit more advanced programming to control than other methods, but can allow for very fine adjustments in speed.
Actually, that whole website is a good resource for robotics. I don't know how much of it applies to EV, since vehicle events aren't my thing.
Boca Raton Community High School Alumni
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
-
Paradox21
- Staff Emeritus

- Posts: 395
- Joined: January 11th, 2009, 3:10 pm
- Division: Grad
- Has thanked: 0
- Been thanked: 0
Re: Microcontrollers
The big difference between a raspberry pi and (most) arduino is that the pi has an operating system on it, but the arduino is just running bare machine code. The OS is great for running separate programs at the same time, which makes it good at multitasking. However, this comes at the expense of consistency. You can't get instruction level consistency with an operating system, meaning you will get a bit of variability in run-time even if you run the same program twice.
An arduino provides the consistency you would expect, but multi-tasking is a bit harder. You have to run a single program in a loop and you can use timer-driven interrupts to get a semblance of multi-tasking if you need it.
For speed control, consider controlling the speed in software. For example, you could send PWM to the motors on your wheels. Varying the duty cycle could be an easy way to get consistent speed control. With an analog speed control like a potentiometer, you are limited by how consistently you can set your speed control. Doing it in software is an easy way to make it very consistent.
An arduino provides the consistency you would expect, but multi-tasking is a bit harder. You have to run a single program in a loop and you can use timer-driven interrupts to get a semblance of multi-tasking if you need it.
For speed control, consider controlling the speed in software. For example, you could send PWM to the motors on your wheels. Varying the duty cycle could be an easy way to get consistent speed control. With an analog speed control like a potentiometer, you are limited by how consistently you can set your speed control. Doing it in software is an easy way to make it very consistent.
When it comes to the future, there are three kinds of people: those who let it happen, those who make it happen, and those who wonder what happened.