Skip to main content

Posts

Showing posts with the label arduino

Using the Johnny-Five platform to control Arduino using JavaScript

When trying to figure out how to actually set the thinker blinker up, the creators specified that they "uploaded the Firmata sketch to an Arduino, then wrote JavaScript code to drive the bulb, using Johnny-five to communicate with it." I then began to search on how to set this Johnny-five up. To understand more about what it is and how to use it, I stumble across this  article. But the point I want to share is this. Julian Gautier then implemented the Firmata protocol, a protocol used to access microcontrollers like Arduinos via software on a computer, using JavaScript in his Node.js Firmata library.  Rick Waldron took it a massive step further. Using the Firmata library as a building block, he created a whole JavaScript Robotics and IoT programming framework called Johnny-Five. The Johnny-Five framework makes controlling everything from LEDs to various types of sensors relatively simple and painfree. This is what many NodeBots now use to achieve some very impress...

Connecting Arduino Pro Mini 328 - 5V/16MHz with your Arduino Uno

So I want to try the Thinker Blinker project from my previous post. As mentioned, they use an Arduino Pro Mini 328 - 5V/16MHz. So hence that is what I bought. Since I already have my Arduino Uno, I wanted to just use it to program my ProMini instead of having to buy USB to serial converter. Basically, the ProMini will act as the IC board of the Uno, which is the board crucial to make the Uno running. After searching the tutorial on how to connect your ProMini to your Uno, it turns out it is pretty simple. I found someone that created the tutorial here . Step 1: Remove the IC from the Arduino Uno board. This is important because we have to 'incapacitate' the Uno so that all the 'power' will go to the ProMini. Now we just have to connect the Uno to the ProMini. I'm using a solderless breadboard to help me do this because it allows me to join other external components like an LED bulb, etc. to try whether the codes actually work. Ste...

Project Update: Thinker Blinker

I've tried uploading the files I recorded from Muse Monitor to be read in Unity. The thing is, I couldn't find the correct reference for this line of work. So after deliberating and discussing with my lecturer, I think I've decided to change the project quite a bit. The main idea is still incorporating the human brainwave as part of the project. However, it is more of playing with the idea that 'mind control' is real. There this project I stumbled where these two people are controlling a 'light-bulb' to turn on and off with just thinking about turning it on and off. The Thinker Blinker  is a project created by using Arduino and Muse headset. The basic idea is connecting the Arduino to a lightbulb (invented by cutting LED strings short and shoving it into a bulb-like cup), and to the Muse headset via Particle Photon. From my understanding, Particle Photon is in charge of allowing the Arduino to be able to connect to wifi/Bluetooth and therefore can co...

Arduino Experiments (pt.2)

Earlier this week, we are asked to present one of our experiment we did over the weekends. It can be unrelated to our topic as well. And as I mentioned previously, I did try out several Arduino projects with my kit. But today, I'm going to show the one I showcased in class. This is an Arduino bot to light up like traffic light. The 3 lights (stop, ready, go) on the left indicate the car traffic light, while the 2 lights (stop and go) on the right represent the cross-road. There is also a blinking light to note that the time for crossing is almost out. Below I attached how it works.

Arduino Experiments (pt. 1)

Earlier this week, I bought my first Arduino Kit . Since this is week 6 of term, our lecturer has asked us to display an experiment by week 7. It could be any type of experiment, and it doesn't even have to be related to our project. The reason why I picked to try on Arduino is that I think it's the closest medium I'll be using for my actual work. But I was kind of worried about this, mainly it is because I've never used or tried it before. I've only heard about it but never actually played around with it. So this is the kit I bought. It costs SGD 70 at one of the shops in Sim Lim Tower. It contains a lot of items to try out experiments. It also includes several tutorial cards that can be successfully running with the items provided in the kit. For more detailed tutorials and the codes of each project, we are asked to go to their website and search for the complete step by step tutorials. Thus far, I have tried several projects, and for ...