James Bruton's mini electric bike

Building A Mini Electric Bike In Between Projects

What do you do when you suddenly find you have some free time because you’re waiting on parts or have run up against other delays for your current project? If you’re [James Bruton], you design and build a mini electric bike.

Being a prolific builder, [James] already had the parts he needed. Some of them were left over from previous projects: a small motor, a 24 volt LiPo battery, an SK8 electronic speed controller, and a twist grip for the handlebars. He cut a wooden frame using his CNC machine and 3D printed various other components. Normally he uses ABS for motor mounts but this time he went with PLA and sure enough, the motor heated up and the mounting screws got hot enough to melt the plastic. But other than that, the bike worked great and looks like a polished, manufactured product. How many of us can say the same for our own unplanned projects using only parts from around the workshop? Check out his build and watch him whizzing around on it in the video below.

As for the former projects from which he had leftover parts, he says that some came from skateboard projects such as his pimped out electric LEGO longboard.

Continue reading “Building A Mini Electric Bike In Between Projects”

Controlling Robotics Visually

The world — and the Hackaday Prize — is filled with educational robots. These are small, wheeled robots loaded up with sensors, actuators, a few motor drivers, and some sort of system that is easy to program. The idea behind these educational robots is to give students an easy-to-use platform to test out code, learn inverse kinematics, and realize odometry is a lot harder than you think it is. Give these kids some time and patience, and you’ll have a fleet of Battlebots at the end of the semester, if the teacher is cool.

But there’s a problem with all educational robots. The programming. For someone just starting out in robotics club, being able to code isn’t a guarantee. You need an easy to use programming interface. This project for the Hackaday Prize gives all students a great visual programming interface. It’s basically like the first generation of Lego Mindstorms, only you don’t need a weird IR tower attached to a serial port.

Of course you can’t program a robot without a board, and this project brings it in spades. The brain for this platform is built on an ARM microcontroller, has Bluetooth, supports up to six DC motors, twelve analog inputs, PWM and serial ports, and all the ports are color-coded for kids who can’t read so good.

This is a visual programming environment, though, and with that, you get a fancy IDE filled with loops that wrap around commands, IO access that’s in easy to read blocks, and control software that gives students a dashboard filled with buttons and odometers and the video feed from the camera. It’s a great Hackaday Prize entry, and an excellent way to introduce kids to robotics.

LEGO: The Kristiansen Legocy

Whether you are young, old, or a time traveling Vulcan, something unites all of us globally: the innocent LEGO blocks that encourage creativity over spoon-fed entertainment. Have you noticed the excess of zombified children and adults alike drooling over their collective screens lately? Back in the ancient times, all a child needed to create hours of joy were plastic interlocking bricks and a place for their parents to trip over them. The LEGO Group harbored the inspiration of our childhood inventiveness, and none of it would have been possible without the founder, Ole Kirk Kristiansen (or Christiansen). The humble carpenter from Denmark forever made his mark on the little Scandinavian country, one brick at a time.

Well, maybe not at first. You see the plastic LEGO bricks we all know and love were initially made of wood. And they were also not actually bricks.

Continue reading “LEGO: The Kristiansen Legocy”

PIC Powered PicoBat Picks Up Pulsed Power

In 2012, [Bruno] wanted to detect some bats. Detect bats? Some varieties of bat (primarily the descriptively named “microbats”) locate themselves and their prey in space using echolocation, the same way your first robot probably did. The bat emits chirps from their adorably tiny larynx the same way a human uses its vocal cords to produce sound. The bat then listens for an echo of that sound and can make inferences about the location of its presumed prey in the volume around it. Bat detectors are devices which can detect these ultrasonic sounds and shift them into a range that humans can hear. So how would you build such a device? [Bruno]’s PicoBat probably sets the record for component count and code simplicity.

With no domain expertise the most conspicuous way to build a bat detector is probably to combine the glut of high performance microcontrollers with a similarly high performing analog to digital converter. With a little signal processing knowledge you sample the sounds at their native frequency, run them through a Fast Fourier transform, and look for energy in the ultrasonic frequency range, maybe about 20 kHz to 100 kHz, according to Wikipedia. With more knowledge about signal interference it turns out there are a surprisingly large number of ways to build such a device, including some which are purely analog. (Seriously, check out the Wikipedia page for the myriad ways this can be done.)

[Bruno] did use a microcontroller to build his bat detector, but not in the way we’d have expected. Instead of using a beastly high performance A/D and a similarly burly microcontroller, the PicoBat has a relatively tame PIC12 and a standard ultrasonic transducer, as well as a piezo buzzer for output. Along with a power rail, that’s the entire circuit. The code he’s running is similarly spartan. It configures a pair of GPIOs and toggles them, with no other logic. That’s it.

So how does this work? The ultrasonic transducer is designed mechanically to only receive sounds in the desired frequency range. Being piezoelectric, when enough sound pressure is applied the stress causes a small voltage. That voltage is fed into the PIC not as a GPIO but as a clock input. So the CPU only executes an instruction when ultrasonic sound with enough intensity hits the transducer. And the GPIO toggling routine takes four clock cycles to execute, yielding a 1:4 clock divider. And when the GPIOs toggle they flip the potential across the buzzer, causing it to make human-audible sound. Brilliant!

Check out [Bruno]’s video demo after the break to get a sense for how the device works. You might be able to do this same trick with other components, but we’re willing to be that you won’t beat the parts count.

Continue reading “PIC Powered PicoBat Picks Up Pulsed Power”

Putting Crimpers To The Test: How Good Are Our Crimp Tools?

Almost every project of mine from the last quarter century, if it has contained any wiring, has featured somewhere at least one crimp connector. There are a multiplicity of different types of crimp, but in this case I am referring to the ubiquitous variety with a red, blue, or yellow coloured plastic sleeve denoting the wire size they are designed for. They provide a physically robust and electrically sound connection that is resistant to wire fatigue due to vibration, and that can carry hefty currents at high voltages without any problems.

You might expect this to now head off into the detail of crimp connection, but my colleague Dan has already detailed what makes a good or a bad crimp. Instead recently my constant searches for weird and wonderful things to review for your entertainment led me to a new crimp tool, and thence to a curiosity about the effectiveness of different styles of tool. So I’m going to evaluate the three different crimping methods available to me, namely my shiny new ratchet crimp pliers, my aged simple crimp pliers, and for comparison an ordinary pair of pliers. I’ll take a look at the physical strength of each crimping method followed by its electrical effectiveness, but first it’s worth looking at the tools themselves.

Continue reading “Putting Crimpers To The Test: How Good Are Our Crimp Tools?”

No Caffeine, No Problem: A Hand-Soldered Chip-Scale Package

It’s said that the electronic devices we use on a daily basis, particularly cell phones, could be so much smaller than they are if only the humans they’re designed for weren’t so darn big and clumsy. That’s only part of the story — battery technology has a lot to do with overall device size — but it’s true that chips can be made a whole lot smaller than they are currently, and are starting to bump into the limit of being able to handle them without mechanical assistance.

Or perhaps not, if [mitxela]’s hand-soldering of a tiny ball-grid array chip is any guide. While soldering wires directly to a chip is certainly a practical skill and an impressive one at that, this at least dips its toe into the “just showing off” category. And we heartily endorse that. The chip is an ATtiny20 in a WLCSP (wafer-level chip-scale package) that’s a mere 1.5 mm by 1.4 mm. The underside of the chip has twelve tiny solder balls in a staggered 4×6 array with 0.4 mm pitch. [mitxela] tackled the job of soldering this chip to a 2.54-mm pitch breakout board using individual strands from #30 AWG stranded wire and a regular soldering iron, with a little Kapton tape to hold the chip down. Through the microscope, the iron tip looks enormous, and while we know the drop of solder on the tip was probably minuscule we still found ourselves mentally wiping it off as he worked his way across the array. In the end, all twelve connections were brought out to the protoboard, and the chip powers up successfully.

We’re used to seeing [mitxela] work at a much larger scale, like his servo-plucked music box or a portable Jacob’s Ladder. He’s been known to get small before though, too, like with these tiny blinkenlight earrings.

Continue reading “No Caffeine, No Problem: A Hand-Soldered Chip-Scale Package”

Everything You Didn’t Know You Were Missing About Bias Tees

Do you need a bias tee? If you want to put a DC voltage on top of an RF signal, chances are that you do. But what exactly are bias tees, and how do they work?

If that’s your question, [W2AEW] has an answer for you with this informative video on the basics of bias tees. A bias tee allows a DC bias to be laid over an RF signal, and while that sounds like a simple job, theory and practice often deviate in the RF world. The simplest bias tee would have a capacitor in series with the RF input and output to pass AC but block DC from getting out the input, and a DC input with a series inductance to prevent RF from getting into the DC circuit. Practical circuits are slightly more complicated, and [W2AEW] covers all you need to know about how real-world bias tees are engineered. He also gives some use cases for bias tees, from sending DC signals up a feed line to control an antenna tuner or rotator to adding a DC bias to a high-speed serial line.

It’s an interesting circuit, and we learned a lot, which is par for the course with [W2AEW]’s videos. Check out some of his other offerings, like a practical guide to the mysteries of Smith charts, or his visualization of how standing waves work.

Continue reading “Everything You Didn’t Know You Were Missing About Bias Tees”