Showing posts with label Electronics. Show all posts
Showing posts with label Electronics. Show all posts

Sunday, December 7, 2014

Minion Code Warriors

Lab based teach by example

Minion Lance and Minion Jocelyn learned coding for the first time in their lives today in preparation for Hour of Code on Monday.  We have already gone over a lot of the parts and pieces of the Arduino kits we bought a few months ago so all was left was to download the IDE and start working on their first project.

Helping debug code (low != LOW)


They first installed the Arduino IDE and set it up.  They set the correct COM port and selected the correct Arduino MEGA 2560.  They then hooked up their MEGA to their PC via USB.  This was all new to them and it was fun to watch their troubleshooting skills.  We had a brief talk again about electricity and how it was trying to get from a high potential to a low potential, kinda like water running down a mountain to get to sea level.  If you put a water wheel in the running water you could get the water to do work for you (see below picture).


A bit of theory

We worked though the picture schematic and they each wired up their breadboard.  I then printed off the code and had them type it in.  Lance was a quick one and said, "If you have it there you could just send it to us."  "No, I want you to type it in", I said.  They did and it was a great learning experience for them.  I was also able to help cook dinner a bit.  =)  After that they had to find all of their errors because their code would not verify.  Code has a very strict syntax, ledPin does not equal ledpin and they found this out.

What the heck is code anyway?

Once it compiled they uploaded it to their microcontroller and low and behold it worked!  Where they, and I, got really excited is when they started to change the code to try change how the LED turned off and on.  Tonight is the first time they have every coded, the first time they have ever even heard of a variable, or let alone seen what a loop does.  Their single LED blinked faster, slower, or stayed on all the time depending on how they changed the code.  I think the next session will be to remove ledPin and replace it with redPin, greenPin, and yellowPin.  I will explain how they can modify their current code to blink the other lights and help them understand variables, delays, and loops better.

All in all it was great.  I would highly suggest anyone interested in electronics to share their passion with their children.  I will leave you with a few more pictures of the Minions at work.

Battery tester extrodanar

Super excited Minion Lance (stealth mode)

Minion Jocelyn's 1st project
 
Dr. Ffreeze's blinky LED





Saturday, October 11, 2014

Project Idea: Lego Magician Type Robot

Magician Chassis
Sparkfun Magician Chassis




Sparkfun has this for $15 but I think we could have more fun making something like this with our Legos and the servos we just got.

Thursday, October 9, 2014

Vehicle Designs

Minion Lance and I did a ~30 minute design jam before bed.  Here are the results of our labors.

Minion Lance

Dr. Ffreeze


Wednesday, October 8, 2014

~$300 Amazon Gift Card gets you what?

Hello All,

A great start into the electronics hobby for Dr. Ffreeze and (2) Minions.

SunFounder, H20, Pressure, Voltage, Electrons, and Holes Oh My

My goal is to share what do together so that it may inspire others to get involved with teaching their children electronics at a young age.  We will meet the Minions at a later time as they are all in bed now.

I am not sure how best to lay out the blog but if you want to purchase some of the items we are using I have included our original Bill of Materials below.

Peace,
Dr. Ffreeze

Bill Of Materials (BOM)

[Count / Item / Cost Ea]
(3)     SunFounder Mega 2560 R3 Project Super Starter Kit     $53
(3)     Amazon Basics USB 2.0 A-Male to B-Male Cable - 6 Feet     $5
(1)     1 ohm - 10M ohm 1/4W Metal Film Resistors Assortment Kit     $9
(1)     Elenco TL-6 Standard Alligator Lead Set, 10-Piece     $6
(2)     INNOVA 3320 Auto-Ranging Digital Multimeter     $20
(1)     microtivity IL451 5mm Clear White LED w/ Resistors (100ea)     $10
(1)     RHX 100x Quality Mini Micro Momentary Tactile Push Button Switch     $4