Categories
Uncategorized

A Motor Controller for PPPRS

Stair Car

I’m going to be posting a bunch about a 2017 build for the Power Racing Series, and along the way I’ll be highlighting some parts of the build and explaining things. We’ll start with the motor controller, because being able to control the speed of a motor is crucial to building an electric vehicle. (Yes, we’re building an electric vehicle. Check out powerracingseries.org for more on this whole thing.)

DC Motor

Disclaimer: In some parts I’m going to keep things fairly simple.

Let’s start with some basics. A DC (direct current) motor spins when connected to power. In the diagram above we’re using a small motor and a 9 volt battery. Connect them together and the motor starts to spin. If you flip the wires (as in red wire to yellow wire, and black wire to green wire) the motor will spin in the opposite direction. This is how “brushed” DC motors work. There are also “brushless” motors, but we won’t get into those.

I sometimes like to refer to DC motors as “Don’t Care” motors. Want it to go the opposite direction? Flip the wires. Want it to go a bit slower? Give it a lower voltage. (Again, we’re simplifying things.)

Motor Controller

Here’s a motor controller. It has a connectors so you can connect a battery and a motor. You can’t make the motor go in reverse with this controller, but that’s okay for now. You can control the speed of the motor, but we don’t do it by lowering the voltage we do it by using “pulse width modulation”, commonly referred to as PWM. PWM is a method of controlling motors, lights, and other things by turning on and off the power really quickly. (Here’s a SparkFun article about PWM.) If you’re wondering why we don’t just lower the voltage (perhaps by raising the resistance) to make the motor go slower, read Why is PWM used to control DC motor speed instead of using a variable resistance?

Motor Controller

OK, so this motor controller comes with a potentiometer. When you spin the potentiometer is varies the resistance from 0 to 100K ohms. This get translated by the controller and feeds the appropriate PWM signal to make the motor go somewhere between not moving at all and full speed. The 100K pot also has two extra wires which work as a simple switch to turn the motor controller on and off.

Before we move on, a bit more about this controller. It’s from China, and it’s really cheap. I only recently discovered it’s a “Leadrise” controller after someone provided this Amazon link. You can find these on eBay for under $13. (Damn, that’s cheap!) I’m going to focus on doing a low-cost build, so keep that in mind along the way.

Throttle

The 100K pot is a nice way to test the controller and make your motor spin fast and slow, but you aren’t going to want a little potentiometer on your electric vehicle! Let’s find a throttle. Now, motor controllers of this variety typically require a “0-5V” throttle, or a “0-5K throttle”. The good news is, the 0-5V throttles are really cheap, the bad news is, this controller requires a 0-5K throttle, which are not cheap.

Magura makes a nice 0-5K throttle. You can find them for around $50 or so. There’s also a 0-5K thumb throttle that’s a bit cheaper. Any of these 0-5K throttles will work fine with this controller, and if you can decipher which wires are which you can cut off the 100K pot and wire in the 0-5K throttle. Easy, right!?

In a future post we’ll get into connecting up the throttle, and after that we’ll look at adding in reverse, and eventually get into building our own throttle controller that will allow us to use very cheap 0-5V throttles with this controller.

See Also: Controlling the Controller Cheaply

Categories
Uncategorized

On the Arts…

ART

What I would say to my students all artists & creatives…

Art matters, and it can be an agent of change. Art can make people think, and thought can lead to action. Art can reveal hidden truths, and art can change minds. Art can be a voice for those that feel they have none. If you’re angry, channel that anger into action and expression. If you feel afraid, create art that relays your feelings to others. If you make music, write protest songs, if you write poems, imagine a better world and share it through your words. If you make images, create strong images of a brighter future that can inspire people.

Art is a weapon… wield it wisely.

Categories
Uncategorized

PCOMP – Assignment 3

Cameron

Alex

Katrina

Maks

Megan

Sadie

Stefanie

Sarah

Malcolm

Raven

Ali

Chance

We’re already half way through the semester and finished our third assignment for Electronics and Sculpture last week. Assignment 3 requires analog input and output for the project. (Assignment 1 is purely digital, and Assignment 2 requires analog input for control.) And yes, the class is called “Electronics and Sculpture” but it could just as easily be named “Arduino for Artists”.

Projects have varied from very interactive to installations to mostly sculptural with some electronics added in. I find that students do the best work when they can take what they are learning in class and combine it with their own practice, or what they are learning in other classes. The Digital Fabrication students definitely have an advantage here, and I wish all of the students had access to digital fabrication tools, though we just wouldn’t have time to cover it all in the 318 class. (That’s not to say the work of non-Digital Fabrication students is lacking in any way, and I’ve seen some great work using very simple material and tools. As always, art is a combination of things, including concepts, themes, ideas, technical skills and abilities, and more.)

We’re currently in the middle of the midterm project, and things are coming together quite well. Critique is in two weeks, and after that we launch right into the final project. (Since there isn’t an Arts+Tech Night this semester, we’ll probably just push the final critique onto the date that our final exam is scheduled for.)

Categories
Uncategorized

Getting Started with CNC [Book]

Make Getting Started with CNC

I can’t remember the last time I did a book review… Have I ever done a book review? I should, because on rare occasions I do read books. While stuck on a plane last weekend (as well as a horse farm with no WiFi or cellular service) I read “Getting Started with CNC” by Edward Ford. I met Edward many years ago when he came to Milwaukee Makerspace, and I’ve helped build a few Shapeoko CNC machines over the years. So when I saw his name as the author, I was excited to consume his knowledge of CNC machines.

I should state for the record that I didn’t just see this book and buy it. It was part of a Humble Bundle where you pay some small amount and get a boatload of electronic versions of books. I tend to fill my old iPad with these, and read them when I get the chance. Seriously, if you are a fan of any of the Make Magazine books, sign up at Humble Bundle. You’ll mostly get emails about games (boring!) but once or twice a year you’ll get an email about an amazing book deal. Totally worth it.

Oh yes, on to the review! The book itself is about 160 pages, not too long, but just enough to introduce someone to the world of CNC machines. (We’re talking CNC routers, not mills, or 3D printers, or laser cutters, though some of the concepts apply.)

There’s good information about end mills, and toolpaths, as well as software (commercial and free options) and it even gets into G-code a bit. There are also some CAD exercises you can do even if you don’t have access to a CNC machine. There are a number of good photos and diagrams to explain concepts and machines, and there’s a walk-through of a complete CNC project which involves inside and outside cutting, pocketing, and milling down the surface. It’s written in a very approachable manner.

Now, I’ve done some CNC machining over the years, but I am far from an expert. Still, “Getting Started with CNC” was a worthwhile read, and something I’d recommend to anyone who has any interest in using a CNC router to make things.

Make Getting Started with CNC

I do have a few very small complaints. I found a few typographical errors, as well as some images that appear to have had FPOs put in, and never updated. These are things I think I can mention because I’ve served as a Technical Editor, otherwise I wouldn’t have mentioned them. ;)

Categories
Uncategorized

Hot Glue Gun Repair

Glue Gun Repair

I spent some time after class in the Physical Computing Lab repairing the hot glue guns. During class students told me that the triggers didn’t seem to work, and they had to push the glue into the gun by hand to get anything out the hot-end.

I removed all the screws (about 8 of them) and opened one up and it’s a lot of plastic inside, besides the hot bits. There’s a plastic piece that snapped, due to (I’m assuming) pulling the trigger too hard. It’s a poor design, but I was able to repair it by drilling holes in the two pieces and adding some wire through the holes and twisting it tight. This was enough to pull the pieces close together. (I contemplated using cyanoacrylate, but didn’t have any, and wasn’t convinced it would work.)

Glue Gun Repair

Two of the guns were in good condition, except for the snapped piece of plastic, but the third one must have been repaired before, because the rubber retaining ring and a tiny spring were missing, and the larger spring had been replaced by a not-quite correct replacement spring. The third one (once assembled) didn’t do a very good job of pushing the glue forward. I may have to try further repairs, but at least we have two working better now.

Glue Gun Repair

The other issue, which may have cause some of the problems, is a “HIGH/LOW” switch on the handle. When I held the gun, I ended up switching it to LOW. If someone had been using it on HIGH and accidentally switched it to LOW, they might have kept pressing hard on the trigger while the temperature dropped, and snapped the plastic bit inside.

Glue Gun Repair

I added some tape to the switches so they don’t get accidentally set to LOW. We only have high temperature glue anyway…

Glue Gun Repair

The third gun, which doesn’t work very well, got labeled “Not Great” so we remember which one is the crappy one., which can still be used, as long as you don’t mind (possibly) pushing the glue forward with your hand.

Glue Gun Repair

Reminder: Hot Glue is Hot!