Wednesday, December 23, 2015

V1 boards are in!

Looks like OSHpark beat DirtyPCBs on delivery time this time around.  Now let's see if the boards work at all...  I'll start with the LED and UART test today.


Wednesday, December 9, 2015

PCBs have been submitted to the board houses!

Quick update -- I submitted my PCB to OSHpark a few days ago, and to DirtyPCBs yesterday.  We'll see what the differences are, and how quickly each service turns the boards around!

I also ordered a ton of components from Digikey, so once I have everything in hand, you can be sure to see some status updates here.

Keeping my fingers crossed, hoping that I won't need to do a rev of the board!

Saturday, December 5, 2015

First pass at PCB is done!

I've been spending a few minutes here, a few minutes there, and am close to having something to send out to OSHpark.  Here's what it looks like at the moment:


And here's what the BOM looks like right now:

DescriptionPart NumberUnit PriceDiscount Price qty 100QtyTotalDiscountedURL
PICAXE-14M2$3.39$3.191$3.39$3.19http://www.robotshop.com/en/picaxe-14m2-microcontroller-chip.html
USB-RS232 converterCH340G$0.40$0.401$0.40$0.40aliexpress
PCB$1.00$1.001$1.00$1.00OSHpark
green SMD LED160-1169-1-ND$0.30$0.131$0.30$0.13http://www.digikey.com/product-search/en?keywords=160-1169-1-ND
22pF capacitor, SMD399-8165-1-ND$0.16$0.052$0.32$0.11http://www.digikey.com/product-detail/en/C1206C220K5GACTU/399-8165-1-ND/3471888
0.1uF capacitor, SMD399-1249-1-ND$0.10$0.032$0.20$0.07http://www.digikey.com/product-search/en?keywords=399-1249-1-ND
12MHz crystal, SMDCTX888CT-ND$0.38$0.261$0.38$0.26http://www.digikey.com/product-search/en?keywords=CTX888CT-ND
22k resistor, SMDP22KACT-ND$0.10$0.011$0.10$0.01http://www.digikey.com/product-search/en?keywords=P22KACT-ND
10k resistor, SMDP10KACT-ND$0.10$0.011$0.10$0.01http://www.digikey.com/product-detail/en/ERJ-6GEYJ103V/P10KACT-ND/43118
200ohm resistor, SMDP200ECT-ND$0.10$0.021$0.10$0.02http://www.digikey.com/product-search/en?keywords=P200ECT-ND
TOTAL$6.29$5.19
I'm going to get pretty close to the $5 cost target!  After I do a quick review, I'm going to get this thing made and see how hard it is to assemble.  Hopefully, it works.  :)

Wednesday, December 2, 2015

Identifying a really cheap embedded solution that is ideal for schools

As I said in my previous post, a few dads and I are going to help out with a Maker's elective at school.  The three topics we will be covering include plumbing, woodworking, and electronics.  Of the three, I'm probably most skilled in electronics, so that's what I am going to attempt to "teach".

My goal is not going to be to make the kids experts in electronics.  Heck, I'm not an expert and just kind of hack my way through projects.  I just want them to be comfortable enough with the basics that they will be able to work on their own projects after the course is over.  In addition, I would like them to have fun and excite their curiosity so that they will WANT to pursue projects.

The basics include an explanation of voltage and current, Ohm's law, and Kirchoff's Laws.  I will need to come up with analogies to make the concepts easier to understand, as well as piece together simple demonstrations to show how the laws apply.  I would also like to give an overview of basic components, like resistors, capacitors, diodes, potentiometers, switches, and LEDs.

Blinking an LED when you press a button is nice for a "hello world" kind of electronics project, but to really capture their interest, I'm thinking that demonstrating fun things is the right way to go.  For example, I might be able to hack together demos like the following:
  • wiimote with accelerometer
  • spinning a stepper motor to drive a car
  • rotating a servo to move a Nerf cannon
  • lighting up LEDs in series to emulate a Force FX light saber
  • sound recording / playing (maybe to add to above light saber demo)
The list goes on and on... but then the question remains -- how in the world do you enable kids to create these projects?  When you think about schools and limited budgets in general, cost is a huge concern.  You also have to consider the programming hurdle for the kids, as well as what kinds of computers are available.  Are the programming tools free?  Do they work on Windows and Mac?  Can you program the board easily?

I created a matrix of products that had to be cheaper than $20, but the magic price I wanted to hit was $5.  That's a tall order, but I think I have reached a decision...


Dev BoardCostExtra Costs / TimeSolderable?Free Programming S/WFree Dev EnvWindows?OSX?iOS?Experience?CommentsSources
MSP430 Launchpad$10NoNYYYYNSomeBringup takes timeTI
EZ430$10/$24NoNYYYYNSomeNot sure if alibaba pricing is legitAlibaba.com
Cypress PSoC$4HeadersNYYYNNNo
Cyproess
Freescale FRDM-KL25Z$15HeadersNYYYYNYesBringup takes time, but really powerful toolsDigikey
Arduino variants$15-20USB cableNYYYYNSomeI don't like ArduinoAdafruit, Sparkfun
PICaxe custom$3PCB, Headers, USB-RS232YYYYYYNoCoding is easySparkfun, Aliexpress
PIC custom?PCB, Headers, USB-RS232Y?YYYNSomeNot sure about cheap programming optionsDigikey, Aliexpress
C.H.I.P.$8LinuxNYYNNNNoDelivery date? We are also not teaching them about programming computersgetchip.com
Raspberry Pi Zero$5LinuxNYYNNNLittleImpossible to get at the moment. We aren't interested in teaching Linux hereElement14
Onion Omega$19Mini dockNYYYYNNoI have one, and the available libraries are quite limited right nowonion.io

This matrix aims to evaluate each available platform in terms of cost, ease of use, my ability to help the kids out with them, as well as accessibility to programming tools and development environments.

I have decided to go with a custom solution, and am currently designing a simple PICAXE-based PCB that includes everything a kid would need on a stick that plugs into a USB board.  It wouldn't need a voltage regulator because I would just rely on the 5V, 500mA USB port present on all computers.  The USB-RS232 converter and PICAXE are both 5V compatible.  I am currently going to go with the 14M2, which I believe will give them a reasonable amount of I/O to play with.  The PCB will include all required components, as well as female stackable headers so that the board can be plugged into a standard breadboard for prototyping.

The other nice thing here (if it works!) is that this gives the kids an opportunity to learn soldering and assemble a mixture of through-hole and surface mount components.  I am going to go with the largest surface mount packages available for each component so that it's easier for them.

If this works out, this board could be a really useful platform for future classes at our school, or at our engineering fairs.  I'll open source everything so other schools can use it as well, not that there's really anything I'm doing here except assembling the BOM and designing a PCB...

If you have any suggestions about useful electronics topics for kids, or anything else at all, please post them!