Reid Carlberg

Connected Devices, salesforce.com & Other Adventures

Tag Archives: Lego

Science Expo Lesson #1 (LEGO Mindcub3r Revisited)

2

Our local school district had our annual K-6 Science Expo yesterday. It was a blast!

Surprising no one, I sold raffle tickets to help keep the expo free for all students. Surprising everyone (or maybe no one who reads this), I brought my Lego EV3 Mindcub3r to make the raffle ticket table a little more interesting.

Funny things happen when you use a robot to solve Rubik’s Cubes for hours on end.  At one point my EV3 was misbehaving, so I decided to check the batteries and the poor little AAs were actually hot!  I replaced them, and everything was OK.

The most challenging piece was the mechanism that flips the cube. It has a tendency to slip during the solve phase, and this problem seemed to get worse as the day went on. Being that we were at a Science Expo, the kids and I decided to come up with a hypothesis and then run some tests.

Hypothesis #1: we needed more weight. So we tried adding weight. We added a couple of small pencils. A AA battery. 2 batteries, then 3. Nothing. If anything, it seemed to make the problem a bit worse.

Hypothesis #2: we needed more friction at the point where the Mindcub3r does the flip. So I added a small piece of, you guessed it, duct tape.

Duct Tape Fixes Everthing

And voila! The solve rate went back up to a pretty reasonable 80-90% and, more importantly, the kids learned a very valuable lesson:

Duct tape fixes everything.

LEGO Mindstorms: Solve Rubik’s Cube in 90 Seconds

2

If you’re looking for a last minute holiday gift for the burgeoning genius on your list, go get a LEGO Mindstorms EV3 set.  Yes, they’re expensive, but they’re worth it.

Want proof?  Watch this:

Yes, that’s from a single set, and it solves the infamous Rubik’s Cube in about 90 seconds. Amazing, right? Yes, it is. And my kid has been talking about it non-stop since I stayed up a little late to build it on Friday night.

I didn’t design this, I just followed the excellent instructions for Mindcub3r from David Gilday.

So totally worth it.

littleBits cloudBit Module Review & Salesforce1 Platform Example

0

littleBits makes it easy for people to experiment and play with a variety of DIY electrical components. It’s fun and easy, and yesterday they made it even better by introducing the littleBits cloudBit.

The cloudBit is a unique and powerful way anyone can create fun Internet of Things style solutions for whatever is important to them.  Today, I’m going to create a fun alert that fires when new Leads are added to Salesforce.

Let’s take a look at the bit itself.  It has the same basic architecture as other bits — magnetic connectors on both sides with a direction indicator — and then a USB wifi connector on the front and a 4GB micro SD card on the back containing Linux.

Yes, that’s right, Linux. In fact, as the description notes, “The cloudBit is a single board computer running Linux.”  Later they also note, “We’ve left pads on the bottom of the board so that you can connect to the cloudBit’s serial console using 3.3V UART (8-N-1, 115,200 baud) and poke around.”  OK, that’s now on my //TODO list.

Front:

20140724-104014-38414493.jpg

Back:

20140724-104013-38413677.jpg

 

Configuring the WiFi is pretty easy. When you first power on your cloudBit, it creates a new hotspot. You connect to that hotspot, and then configure it to connect to whatever your local setup is. This is a familiar pattern for a lot of new connected devices, so you’ll probably find it easy.  Once you’ve configured it, the basic operation is pretty simple, as I demonstrate in the video below.

Ok those are the basics. So, you might be asking, what can you do with it?

Quite a bit as it turns out.  I like to create fun things in Salesforce, so I decided to create a real world alert that tells me when a new Lead is added to the system.  I did this using a cloudBit, Twilio and LEGO. Check out this video for a demo and an explanation.

There you have it.  There’s really no meaningful code required, it’s mostly done with a few clicks.  If you’d like to try it yourself, you can get a littleBits cloudBit for $59 and try out the Twilio Salesforce integration for free.

 

 

%d bloggers like this: