Skip to main content

Posts

Showing posts with the label Arduino

Software Developers Experience building a robot Part 2(Tank treads and blue smoke)

Tanked As I mentioned in  part 1 , I had drawn the conclusion that legs were not what I wanted and that tank treads are probably the most overkill for weight bearing. So , I ordered a Rover 5 base. Rover 5 robot base Unforeseen requirements When the Rover base arrived I opened the box to discover something I had completely overlooked; I didn't have a motor controller. With no clue of what an H-Bridge was and a new found determination I decided to build my own motor controller using about 6 relays. It was finally time to get serious about soldering on those proto-boards. I used a breadboard to prototype a system that used 6 relays and 4 transistors. You could hear the loud clickity clack of the relays as the direction changed but I was pretty proud of my ingenuity. It was time to solder! This was the most intricate soldering task I had ever undertaken and it really showed that I'm more of a software kind of guy. I perceived it to be the longest time I have ev...

Controlling an LED on an Arduino over HTTP

Prerequisites You will need node.js and npm installed , and should have at least some knowledge when it comes to node, if you do not , I suggest you try some example code in node before diving into controlling hardware with it.  You must have the Arduino IDE installed on your machine You must know how to get an LED working on pin 13 of an Arduino Set up the Arduino Wire up an LED to the Arduino on pin 13 and plug it into your development machine. Now we need to get it ready to talk to johnny-five. To do this simply follow the instructions under johnny-five's readme Set up the project  Create a folder on your development machine for the project , in this folder create the server.js and index.html files. Copy the code from the files in this gist  to the respective files. Loading .... We aren't done yet , we need johnny-five and the narf for this to work. In your project directory run the following command: npm install narf johnny-five If that su...