Microcontrollers

For anything Science Olympiad-related that might not fall under a specific event or competition.
User avatar
windu34
Staff Emeritus
Staff Emeritus
Posts: 1384
Joined: April 20th, 2015, 1:37 am
Division: Grad
State: FL
Has thanked: 2 times
Been thanked: 42 times

Microcontrollers

Post by windu34 »

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
Miske
Member
Member
Posts: 3
Joined: November 21st, 2013, 12:00 am
Division: C
State: MI
Has thanked: 0
Been thanked: 0

Re: Microcontrollers

Post by Miske »

Bump
Events I've Been In: Disease Detectives, Technical Problem Solving, Gravity Vehicle, Scrambler, Mission Possible, Air Trajectory, Robot Arm, Experimental Design, etc.
UTF-8 U+6211 U+662F
Exalted Member
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

Post by UTF-8 U+6211 U+662F »

What is the difference between this and the EV thread?
User avatar
windu34
Staff Emeritus
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

Post by windu34 »

UTF-8 U+6211 U+662F wrote:What is the difference between this and the EV thread?
This is microcontroller-specific and is not specific to EV
Boca Raton Community High School Alumni
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
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

Post by UTF-8 U+6211 U+662F »

windu34 wrote:
UTF-8 U+6211 U+662F wrote:What is the difference between this and the EV thread?
This is microcontroller-specific and is not specific to EV
Okay then.
User avatar
bernard
Administrator
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

Post by bernard »

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?
"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
User avatar
windu34
Staff Emeritus
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

Post by windu34 »

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?
I initially tried that, but couldnt get it to work properly. Ill give it another try though.
Boca Raton Community High School Alumni
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
User avatar
TwelveSquared
Member
Member
Posts: 8
Joined: June 17th, 2013, 7:29 pm
Division: C
State: KS
Has thanked: 0
Been thanked: 0

Re: Microcontrollers

Post by TwelveSquared »

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.
Tonganoxie High School
Astronomy, Geologic Mapping, Robot Arm, Hydrogeology
User avatar
windu34
Staff Emeritus
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

Post by windu34 »

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.
That sounds perfect! Ill try it!
Boca Raton Community High School Alumni
University of Florida Science Olympiad Co-Founder
Florida Science Olympiad Board of Directors
[email protected] || windu34's Userpage
Paradox21
Staff Emeritus
Staff Emeritus
Posts: 395
Joined: January 11th, 2009, 3:10 pm
Division: Grad
Has thanked: 0
Been thanked: 0

Re: Microcontrollers

Post by Paradox21 »

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.
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.

Return to “General Competition”