Microcontrollers

For anything Science Olympiad-related that might not fall under a specific event or competition.
User avatar
windu34
Staff Emeritus
Staff Emeritus
Posts: 1364
Joined: April 19th, 2015, 6:37 pm
Division: Grad
State: FL
Location: Gainesville, Florida
Has thanked: 1 time
Been thanked: 22 times

Microcontrollers

Post by windu34 » May 30th, 2015, 1:54 pm

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 30th, 2015, 6:18 pm, edited 1 time in total.
Boca Raton Community High School Alumni
Florida Science Olympiad Board of Directors
National Physical Sciences Rules Committee Member
kevin@floridascienceolympiad.org || windu34's Userpage

Miske
Member
Member
Posts: 3
Joined: November 20th, 2013, 4:00 pm
Division: C
State: MI
Has thanked: 0
Been thanked: 0

Re: Microcontrollers

Post by Miske » May 30th, 2015, 5:53 pm

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: 1523
Joined: January 18th, 2015, 7:42 am
Division: C
State: PA
Has thanked: 1 time
Been thanked: 2 times

Re: Microcontrollers

Post by UTF-8 U+6211 U+662F » May 30th, 2015, 6:11 pm

What is the difference between this and the EV thread?

User avatar
windu34
Staff Emeritus
Staff Emeritus
Posts: 1364
Joined: April 19th, 2015, 6:37 pm
Division: Grad
State: FL
Location: Gainesville, Florida
Has thanked: 1 time
Been thanked: 22 times

Re: Microcontrollers

Post by windu34 » May 31st, 2015, 5:31 am

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
Florida Science Olympiad Board of Directors
National Physical Sciences Rules Committee Member
kevin@floridascienceolympiad.org || windu34's Userpage

UTF-8 U+6211 U+662F
Exalted Member
Exalted Member
Posts: 1523
Joined: January 18th, 2015, 7:42 am
Division: C
State: PA
Has thanked: 1 time
Been thanked: 2 times

Re: Microcontrollers

Post by UTF-8 U+6211 U+662F » May 31st, 2015, 6:31 am

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: 2189
Joined: January 5th, 2014, 3:12 pm
Division: Grad
State: WA
Pronouns: He/Him/His
Location: Seattle, WA
Has thanked: 112 times
Been thanked: 321 times
Contact:

Re: Microcontrollers

Post by bernard » May 31st, 2015, 10:43 am

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

User avatar
windu34
Staff Emeritus
Staff Emeritus
Posts: 1364
Joined: April 19th, 2015, 6:37 pm
Division: Grad
State: FL
Location: Gainesville, Florida
Has thanked: 1 time
Been thanked: 22 times

Re: Microcontrollers

Post by windu34 » May 31st, 2015, 3:04 pm

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
Florida Science Olympiad Board of Directors
National Physical Sciences Rules Committee Member
kevin@floridascienceolympiad.org || windu34's Userpage

User avatar
TwelveSquared
Member
Member
Posts: 8
Joined: June 17th, 2013, 12:29 pm
Division: C
State: KS
Location: Frogstar World B
Has thanked: 0
Been thanked: 0

Re: Microcontrollers

Post by TwelveSquared » May 31st, 2015, 3:22 pm

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: 1364
Joined: April 19th, 2015, 6:37 pm
Division: Grad
State: FL
Location: Gainesville, Florida
Has thanked: 1 time
Been thanked: 22 times

Re: Microcontrollers

Post by windu34 » May 31st, 2015, 8:15 pm

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
Florida Science Olympiad Board of Directors
National Physical Sciences Rules Committee Member
kevin@floridascienceolympiad.org || windu34's Userpage

Paradox21
Staff Emeritus
Staff Emeritus
Posts: 395
Joined: January 11th, 2009, 7:10 am
Division: Grad
Has thanked: 0
Been thanked: 0

Re: Microcontrollers

Post by Paradox21 » June 2nd, 2015, 7:03 am

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.

Post Reply

Return to “General Competition”

Who is online

Users browsing this forum: No registered users and 16 guests