Category Archives: FamilyFun

Arduino Robot Class preview

I’m teaching an Arduino Robot class June 29 from 6-8pm at YouDoitElectronics in Needham, Ma. The cost is $99 and you get to take home the robot you build. I’ll show you how to use an Arduino to control DC motors, and read sensors to react to the environment. The robot we’re building will have a sonar sensor for distance, and two line detectors for following a line.
To register email your name phone number and number of participants to events@youdoitelectronics.com. Please include Arduino Robot Workshop in the subject line. You will receive a call back within 1-2 business days. Fee is required at time of registration prior to the start of the workshop. Once registration and payment are complete a reservation confirmation number will secure your spot.

DIY Rayguns!

IMG_20160117_244535475

I’ve been going to Arisia (one of Boston’s Science Fiction Conventions) for several years. I always have a great time, and it always amazes me the amount of volunteer effort that goes in to providing amazing programming for everyone. This year I wanted to give something back so I came up with the idea of people building rayguns.

(NOTE: My extra kits are available in my etsy shop: https://www.etsy.com/listing/265475569/diy-raygun-kit)

Regular LED strip is super cheap when you order it from China. It normally runs off 12V, but a 9V battery lights it up just fine. I created a simple laser cut frame to put some LED strips, and then some cool laser cut acrylic disks to give it that groovy 50’s raygun look.

I bought most of the parts myself, but special thanks goes to my friend Jeremy Green at Charles River Maker for donating Laser time for cutting the kits. He’s your goto guy for design, prototyping and digital to physical services with laser cutting and lots of 3D printers!

IMG_20160124_200031275

A switch makes the trigger, and there’s a fin with holes to add decorations.

IMG_20160124_202035981

First cut a strip of LEDs. Mine consisted of groupe of 3 led sections.. Cut a strip of 5 sections, two sections on each side and one straddling the middle:

IMG_20160124_200123002

next glue on the handle “dimensional” bits. These are mainly to make a recess for the battery, and maybe wrap the handle. Super glue works pretty quick, but you could probably use wood glue or whatever is appropriate for your frame:

IMG_20160124_200915995_HDR

Glue the trigger button on, (kindof low, as the disks are pretty close. Actually I moved it down abit after I put the disks on (later step)

IMG_20160124_201644540_HDR

Line up the battery clip and shorten the leads to connect one end (I chose the red, positive wire) to the positive contact on the LED strip. A small wire went from the negative contact to the switch and the other lead of the switch to the negative lead of the battery clip.

IMG_20160124_201656322

Test, viola!

Next line up the disks where they fit. back them off and put a drop of superglue where each disks goes in order.

IMG_20160124_202344870

IMG_20160124_202812456

The source files for laser cutting are at: https://github.com/osbock/Baldwisdom/tree/master/DIYRayguns

And now a few pics from the workshop at Arisia!

IMG_20160117_244513394_HDR

IMG_20160117_244050950_HDR

IMG_20160117_244531403

 

 

 

Parametric Littlebits Mounting system

TL;DR version: I got to borrow the littlebits synth kit, and created a parametric version of the mounting board. The source files are available on github: https://github.com/osbock/Baldwisdom/tree/master/LittleBitsMounts

The Newton Free Library applied for and got a cool LSTA ( Federal Library Services and Technology Act) Grant to do a bunch of STEM related programs, and I have the honor of doing a bunch of coding and robotics workshops there over the next few months.

They got a bunch of cool new equipment to run these programs including Finch Robots, Arduinos (Sparkfun Inventors Kits), a KIBO robot, and … wait for it… a bunch of Littlebits sets. NFL Assitant Director Jill Grabowski was kind enough to lend me the coolest littlebits set: The Korg Synth kit.

korgset

 

If you aren’t familiar, they are modular electronics blocks that snap together with magnets. Unlike earlier “electronics construction sets” these are pretty foolproof, well thought out modules instead of just individual components. As Founder Ayah Bdeir says ,

AT LITTLEBITS, WE ARE ON A MISSION TO DEMOCRATIZE HARDWARE BY EMPOWERING EVERYONE TO CREATE INVENTIONS, LARGE AND SMALL, WITH OUR PLATFORM OF EASY-TO-USE ELECTRONIC BUILDING BLOCKS.

Unfortunately the thing that makes Littlebits easy is also it’s greatest weakness: The magnetic connection system.

Especially when making something you have to manipulate (like a musical instrument), they tend to come apart, you lose power, etc.

Now some of the other (more expensive) sets come with mounting plates (that you can also buy separately. I didn’t have one though, but I do have a laser cutter and a 3D printer. How hard could it be? Well, the devil is in the details.

First I looked to see if it was already done. Thingiverse (I know boo….) has a few designs, including some by littlebits themselves, mostly specific component mounts.

Rex Brodie posted this cool clip that fastens adjacent modules together.
clips

It works pretty well (very solid) but it was difficult to put the two bits in without pulling and pushing and putting a bit of strain on the boards. (Especially scary when the ‘bits are on loan).

I tried just measuring and cutting holes with my laser, or a simple model with Open SCAD but I just couldn’t get the spacing quite right.

Thingiverse user Kris Kitchen had posted this design:
littlebitsgrid

which I printed and actually worked quite well. Only problem was, it was an STL (Surface Tessellation Layer) file, and thus not easily modifiable. I wanted wider, arbitrary shapes, etc!

I could however pull Kris’s design into OpenSCAD, and do a trick to measure the “holes” and spacing.

This little bit of code:

projection(cut=false)difference(){
translate([0,0,-41])import(“LittlbitsGridthin.stl”);
translate([0,0,-10])cube([250,40,10]);
}

cuts off the bottom so the holes will show and projects the outline in 2D.

projection

I then exported this as a DXF file, and used inkscape to make measurements.

If I haven’t lost you by now, the part you are waiting for, the measurements (which I couldn’t find anywhere after much googling!)

  • Holes: 6 mm diameter
  • Spacing (edge to edge or center to center): 6.63mm
  • spacing is also 10.5% of hole
  • 1.294mm knockout line

The percentage bit is important (I calculated it, 6.63/6) if you are designing in inkscape because that is how you do a grid of evenly spaced objects.

I made a couple of attempts at a laser cut version, but it was very brittle, and I didn’t take into account the laser’s kerf (width of cut)

The 3D printed version came out pretty well, but the holes were a bit too small, so I enlarged them by .2mm (.1mm on the radius). and it worked perfectly!
littlebitsmounted

Now we can make mounting boards in any shape!
star

The source files are available on github: https://github.com/osbock/Baldwisdom/tree/master/LittleBitsMounts

1-Macguyver Vs 5C

MacGuyver Copter Part 3: Success!

If you have been following along, in Part 1 and Part 2, I was trying to build a simple, cheap and easy quadcopter from spare parts. Well, the simplest methods failed, time to get out the laser!. Acrylic isn’t the best material for a quadcopter frame. It’s relatively heavy, and fairly brittle. but it’s  easy to cut in a laser cutter, which I happen to have, courtesy of Wyolum.com.

20150721_215248

Did it work? Well, it didn’t flip over, but started spinning a bit in place.  When I picked it up with the props going, some of the air was blowing up! I somehow got the ordering and placement of the motors wrong. I cracked open my original X5C (wow, that’s a lot of screws!)

I fixed the wiring, and then it flew! About 6 inches off the ground! I noticed that the props were rotating about 1/4 of a rotation over the body which means a lot of backwash, but the main problem is revealed when I weighed it.

The original Syma x5C with camera and battery weighsin at 97 g.

Version L1 of the MacGuyver Copter: 122g. Flew about 6 inches above the ground.

I created a new version with more or less rounded rectangle arms, and a circular central platform. I was worried because acrylic is rather brittle, and I wanted it to be strong.

20150722_174826-001

Version L2 of the MacGuyver copter weighed in at  106g. Flew relatively well, but inertia was killer on flips(lots of altitude loss), and battery runs down very quickly. After about 5 minutes, it was again hovering at 6 inches.

Although we think of plastic as light, acrylic is fairly heavy so I tried some plywood. All I had on hand was some 1/4 inch cheapo birch plywood from home depot.

20150722_180330

 

I forgot to record the wieght of this one (I think it was between 100 and 110 grams), but it worked quite well. The only problems were that my cutouts came a little close to the edge, and between the cheap plywood (voids) and those thin areas, one of the arms broke in a crash.

The final design simplified the cutout to be a triangle and weighs in at 84g, compared to the x5, without the camera or battery door at 88G. There are probably lighter, equally stiff materials, but this is pretty easy to do.

1-MacGuyverV3

Flys fantastic, at least to my feel It seems better than the stock version without the camera. Even though it’s less “aerodynamic, I think it handles better in a light breeze than the original, probably due to less surface area.

Here’s a (pretty bad) video of it’s flight. Trust me, it’s fun!

I also cut a frame out of 1/8 inch acrylic, but it was way too bendy, and wouldn’t take off. I think the props tended to thrust up, and bend it toward the middle, and the IMU (Inertial Management unit) couldn’t figure out a way to get enough power out to get it in the air.

 

20150716_115519

MacGuyver Copter Part 2: Total Ghetto, Total Fail

Spoiler alert: in part 3, we finally succeed!

If you read the first post  you know that I was inspired by all the cheap replacement parts for the Syma X5. Also the motor mounts have all sorts of interesting attachment points, including a tube that fits a 3mm (who knew they were a standard size?) bamboo barbeque skewer. I’ve seen people bodge together quadcopters with “real” controllers but with crappy wooden frames, so I thought why not.

First I cut some skewers so the props were centered where they were in the original Syma X5. They were 9 inches center to center.

20150715_174605

I taped it all together, with the controller in the middle. I didn’t have much hope, as  you can see the fit on the motor mounts isn’t tight, and I was afraid they would twist. I taped them the best I could but as you can see in the video it was a total fail.20150715_223808

One problem I noticed, was that I had mounted the controller board upside down. Doh! The purpose of the controller is to keep it upright!

20150716_115519

Next I designed a 3D printed hub for the middle, secured with hot glue. I found some tiny screws (scavanged from many tear aparts!) and drove those through holes in the arms and through the bamboo skewers. This time it worked better but spun. I concluded that the bamboo was twisting with the motor torque. Probably true, but later I also discovered that I had the motors mounted in the wrong place.

Conclusions: I need a sturdier frame, but still need to keep the weight light (how light, well, I find out in part 3…)

droobot-active

Droobots: 3D printed Bristlebots

3D printing Bristlebots gives you lots of creative options, and here’s a new way to create the bristles, or legs of the bots. More details follows the video, and the source code is at: https://github.com/osbock/droobots

Mark Peeters, came up with a clever idea for making lacy  fibrous flowers with a 3D printer, by taking advantage of FDM’s greatest weakness: the need to support overhanging structures.

drooloop-group1 kopieTurning them over in my hand, I had the insight that they could be perfect bristles! I fired up OpenSCAD and started designing a simple bot:

The trick is that you have to let them droop down, so you have to have something in the center to hold it up, and have the legs be unsupported. I designed in support material for the body.

droobot-scad

It’s tricky if you make the support walls to thin, the slicer may ignore them. Too thick and it’s harder to remove. This version works fairly well, but is a little too heavy for my taste.

 

I use Cura, and I was thinking about how to use it’s native support which is very thin and easy to remove. There is an option for printing support material only when there is an overhang  on the baseplate. I put thin (.4mm) rectangles under the legs, but not under the body:

droobot-needs-supportThis works out quite nicely, and gives a speedier print.

cura-suportThe other thing that’s helpful is to turn off the fan during the leg creation. You can either use the “Tweak at Z” plugin, if you use Cura, or edit the Gcode.  I located the layer where the legs started and  inserted an M107 (stop fan) command, and then when it was on a layer above, add M106 S255 (fan full on)

After printing, I use a hot air gun to soften the legs to press them down more to a right angle. This give a more energetic movement than the splayed legs right off the printer.

You can also experiment with trimming them with scissors.

Last but not least, I imported the basic STL into tinkercad, and added a head and tail for a little more pizzazz!

tinkered-droobpt

 

 

 

Cheerson_in_hand

Nano quads: is the Cheerson CX10A a good way to learn?

Continuing the quadcopter obsession, It’s hard not to run across the myriad of nano and mini quadcopters out there. They are cute, and offer the opportunity to fly indoors. My neighbor who flies a DJI Phantom 3 Pro said he learned on the Cheerson CX10. I ordered the upgraded version (CX10A) from BangGood in China, and while I was waiting, I saw them in action at Einsteins workshop in Burlington, MA at a robotics meetup. It looked really fun and their local quadcopter enthusiast made it look easy to fly, however other folks had a bit of difficulty.

Note, you can also buy it from Amazon for only a couple of dollars more and have it in two days!

Well, it arrived, and it certainly is cute!
Cheerson_in_hand

Battery Power

Being tiny (though not the smallest…) It has a very small battery, and it’s inside the case soldered to the board. While the sites advertise replacement batteries, it’s not an easy swap. You’s have to cut the connector off the new battery (Be careful!) and solder it to the board. It comes with a little USB plug charger that charges it in about 30 min. My flight times were initially longer, but now I get about 5-6 minutes without prop guards.

Prop Guards

Now, I was still a newbie (though I had some practice flying the Syma X5C) and I broke a lot of props (order plenty of spares!)
It doesn’t come with prop guards so I 3d printed some from designs on thingiverse, and later ordered an aftermarket propguard that was much lighter.

Aftermarket on the Left, 3D printed on the right

Aftermarket on the Left, 3D printed on the right

How does it fly?

Let me say this: It’s all about the thrust, and I’m afraid the tiny props just don’t provide a lot. Without propguards it flies reasonably well, though it’s not going to win any awards for turning quickly.  With the prop guards, it has significantly more inertia, and no more thrust, so it tends to be a bit more jerky. It falls faster, stops slower, and in general is hard to fly. Not a great thing for a beginner learning to fly. Also keep in mind, this thing is tiny, and you can easily loose track of it.

It also has an acrobatics mode, if you push down on the right joystick, and then push it in the direction you want it to flip, it will execute a nice flip for you. Don’t do this too near the ground (or other people…) as it’s likely to lose some altitude in recovering from the flip.

Range limitations (and a fix)

When I got better at flying it, and was taking it outside, I thought it was broken. It would stop turning in one direction, or just suddenly I’d lose control. I noticed that up close, I didn’t have these problems, but 20 feet away, yuck.

I’d seen some youtubes where people extracted the little wire antenna on other quadcopters and their controllers, so I cracked open the controller, drilled a little hole in the case and fed the wire antenna through, and now it behaves great! I can fly it at least a block away. Don’t bother cracking the copter itself open to do the same thing, as there is no wire antenna, it’s just built into the PCB.

CX10controllermod

Headless Mode

The CX10A differs from the original CX10 in that it has a “headless mode.” Normally when you fly a copter away from you (back of the craft toward you) Left is Left and Right is Right. If the copter is flying toward you, it’s reversed. If you push the stick left, the quad will go right, and vice versa. In more advanced quadcopters, a special “headless” mode is implemented with an electronic compass, that allows whatever direction you take off in to be the “normal” direction. now, no matter which way you fly, the quad will go Left when you push left, and Right when you push right. On the CX10A, they try to do this by keeping track of turning (it does have a gyroscope sensor) in software. It works….For a while, until it gets confused, and then you have to turn the copter off, and re-pair with the controller. Also, any bump or crash, makes it either go crazy (one or two motors on full speed) or just stop responding all together.

Conclusion

It’s a fun toy, and once you learn to hover relatively well, it’ fun to fly it from one person’s palm to the next. It’s a bit flakey when it crashes,  and is underpowered, so I really wouldn’t recommend it for learning to fly. A larger copter, (even a mini, like the Hubsan X4 or the Eachine H8 which I’ll review next) are more agile flyers. I don’t have any other Nano-copters to compare it with, but the bigger ones are easier to fly in general. The nano size can be more readily flown indoors (with even my poor flying ability!) but you should watch out for crashing and you are going to have to clean things like hairs out of the props it if lands in an untidy corner.

syma-parts

MacGuyver Copter Part 1

You see a ton of projects on the web where they stick some motors on some sticks, and viola! a quadcopter. Thing is, those motors and full featured flight controllers are expensive. I wanted to try to scratch build a quadcopter from super cheap spare parts from the Syma X5c.

New Version Syma X5C 2.4G 6 Axis GYRO HD Camera RC Quadcopter RTF RC Helicopter with 2.0MP Camera By E-Trade Deal
Syma X5 X5c Quadcopter Full Part Set 4*motors Propellers Landing Skid Protectors Motor Base

 

Getting Started with Quadcopters

Of course I’ve been interested in multirotor aircraft like quadcopters. I am a geek after all! All the things I read about were about advanced hobbyist or professional models, and the price was prohibitive. Then I went to the Northern Virginia Mini Maker Faire, and there were drones everywhere! There was a shop that was selling nano-quads, for $40, and NovaLabs had organized a flying contest using a Syma X5 4 Channel 2.4GHz RC Explorers Quad Copter that can be had for less than $40 on Amazon.

When I got home I ordered the X5C version which has a high def camera and comes in under $50.

It comes with a battery (you might want to buy extras), transmitter, a charger, extra blades, prop guards and even a micro-sd card for the camera. You’ll need to add AA batteries for the transmitter.

I’m really glad I dipped my toes this way, as I’ve learned a lot, and there IS a lot to learn! I’ve tried to fly RC planes in the past, and found it just too hard and frustrating. While I did crash the X5C (a lot!) it’s pretty unbreakable, and comes with lots of spare parts. Since hovering is the general idea, it’s usually not that far away (though you can fly it pretty far away from you!)

How does it work?

It’s also easier to fly because the onboard computer and IMU (Inertial Management Unit, a fancy name for Gyroscopes and Accelerometers) keep the unit level in flight. Here’s a little video to demonstrate this:

Flying

Getting started, it is a good idea to use the prop guards especially if you are flying indoors. This aircraft is extremely light, so flying it outdoors is really difficult if there is more than light wind, though once you get the hang of it you can fly it in a breeze.

There’s also a button that lets you make it do flips! Be careful not to do it too near the ground or any bystanders, and it works better with the camera removed.

Video

The camera is for capturing pictures and video, and you do not get to see it in real time (that’s called FPV or First Person Viewing, and is a lot more expensive!) You have to remove the micro-sd card and load it on your computer (they even include a USB micro-sd reader!)

The video is pretty good, though in flight, it’s got a lot of vibration. Here’s a sample:

I’m going to experiment with unscrewing the camera and affixing it with foam mounting tape to see if the vibrations can be reduced.

The camera is also easily removed, if you want more flight time or to do more acrobatics.

What it isn’t

This quad doesn’t fly itself. My neighbor  (Check out his awesome youtube channel on Card Tricks, The Card Cave ) Has a $1500 DJI Phantom 3 Pro. You can tell it to auto take off, return to home, and if you set it to hover somewhere, it stays there, even if the wind is blowing (there are limits, but it’s pretty amazing.) These kinds of copters are enabled with GPS and magnetometers (digital compass) so they can stick to a heading or position, and be programmed to move between them. The video is on a brushless motor gimble that keeps the video rock solid, even when the quad is being buffeted.  You can set these fancy copters into “Acro” mode and fly it just like the Syma X5C, but frankly I’d be scared to.

What it is good for

  • Learning to fly. I’m interested in FPV racing and the principles are the same.
  • Learning how to fix a quad copter (cheaply). Every part of this quad is available (either through amazon or one of the chines sites like banggood.com). My son crashed it hard, and it bent the propeller shaft. I ordered a new motor mount for about $2, and I was back in business.

I’m even thinking about getting a full set of spare parts (less the camera and body) and trying to scratch build a quad from them. Stay tuned.