Skip to main content

LEGOs and micro:bits

Many moons ago, in a SparkFun chair not so far away, I sat down and built a LEGO WALL-E. It was my first week here, and I knew almost no one in the building. This guy stopped by and asked me what I was doing, thus launching a 20-minute geek-out session about LEGOs, hobby motors, all the fun hacks that were possible, and why my toolkit included purple eyebrow tweezers (for real, they are great for fine board work). Turns out, that guy was our founder Nate – pretty much the coolest intro to a company ever.

WALL-E unfortunately sat on my desk for months, staring at me forlornly until I couldn't take it anymore.

wall-e's plaintive look

Cue up the DC motors, serial-controlled motor driver and micro:bits. Inspired by Bobby's micro:bit tutorial here, I set about rebuilding the innards of my LEGO bot to give myself more space for boards and the like. The kit and instructions are amazing; I may have uttered some impolite words about my ineptitude at reverse engineering said kit.

Wall-E's innards

Even with the additional space, I had to downsize everything. I had wanted to use the moto:bit, but with the space issues, there was no way. Instead I used the serial-controlled motor driver and powered the motors with two LiPos in series, using the LiPo Charger/Booster - 5V/1A. The micro:bit got hooked up to our SparkFun micro:bit Breakout and set up as a backpack. I used the gamer:bit as a controller to send wireless commands to WALL-E.

Wall-E's backpack!

I got a nice surprise when I found that the moto:bit and the serial-controlled motor driver both use the same chip, so the MakeCode I wrote for the moto:bit in prototyping still worked just fine.

Driving Wall-E Around

At some point in the future I might add sound, but I may need to do a complete rebuild of the bot for an MP3 trigger and speaker. For now, he'll drive around and deliver candy to my co-workers, especially as they did not call me out on all my impolite words.

Have you used our boards to hack your LEGO kits? Or do you have other bot projects you used our boards for? Tell us in the comments!

comments | comment feed



from SparkFun: Commerce Blog http://bit.ly/2PJqKnL

Comments

Popular posts from this blog

TE Connectivity Announced Ultra Small Spring Fingers

TE Connectivity (TE)’snew ultra small spring fingers have one of the smallest footprints in the market to save valuable PCB space, allowing for use in a broad range of applications with space constraints across various industries.TE’s ultra small spring fingerscan save valuable PCB space with one of the smallest footprints in the market. Closed-loop contact design ensures reliable connection to the PCB, better normal force and higher current capacity (1.5A). Robust side wall minimizes over- compression. Special anti-lifting design can improve assembly e ciency by locking the tip of the contact within the sidewall of the spring  nger, which helps prevent the contact from getting caught on an operator’s glove during assembly. Pick-and-place area supports auto-assembly processes. It also offered in different heights and styles.As an authorized distributor for TE Connectivity, Heilind Asia provides TE’s products and also value added services. Heilind Asia supports both original equipment …

Hanwha TechwinCollects Two NPI Awards for Its Cutting-Edge Modular Mounter and Screen Printer at APEX

Hanwha Techwin Automation Americas, formerly Samsung C&T Automation, today announced that it has received two 2019 NPI Awards in the categories of Component Placement – High-Speed for its HM520 Cutting-Edge Modular Mounter and Screen/Stencil Printing for the ESE US-2000XF. The awards were presented to the company during a Tuesday, Jan. 29, 2019 ceremony that took place at the San Diego Convention Center during the IPC APEX EXPO.With the HM520 Modular Mounter, actual productivity is highest among machines of the same class and is optimized to high quality production. The system configures a flexible production line by applying a modular head and various production modes. The HM520 realizes unmanned, non-stop, and zero-defect production using the Smart Factory S/W Solution.The high performance HM520 offers a compact foot print, auto-calibrating maintenance free feeders, and modular heads. The HS(High Speed) Head offers a 20 Spindle x 2 Gantry, 80,000 CPH, ±25 μm @ Cpk ≥ 1.0, 0201 ~ …

Battery Stack Monitor Maximizes Performance of Li-Ion Batteries in Hybrid and Electric Vehicles

Cosimo CarrieroField Applications Engineer, Analog Devices, Inc.AbstractLithium-ion (Li-Ion) batteries are a popular way to store energy in electric and hybrid vehicles. These batteries offer the highest energy density of any current battery technology, but to maximize performance, a battery monitoring system (BMS) is mandatory. A state-of-the-art BMS not only allows you to extract the highest quantity of charge from your battery pack, but also lets you manage the charge and discharge cycles in a safer way, which results in an extended life. Analog Devices provides a full portfolio of BMS devices with focus on accuracy and robust operation.Accurately measuring a battery’s state of charge (SOC) increases battery run time or decreases weight. A precise and stable device does not require factory calibration after PCB assembly. Stability over time improves safety and avoids warranty problems. A self-diagnostics feature helps reach the right automotive safety integrity level (ASIL). A batt…