Arduino + ruby over serial

Sometimes world of embedded devices are not really far from ruby world.

I’m currently playing with sensor data and arduino. Sensor data and data science can be amazing. Getting some insights from data of real world. Statistics on sound level snapshots for example… and try to detect wider context from small and poor data.

So pushing the information to internet is a bigger concern. I use the cc3000 wifi component but i need to code the server side and higher volume or rate of data seams to be more difficult.

So why not get directly data from serial ? It is just having the arduino board connected to the USB of my mac and using a devices like this: /dev/cu.usbmodem14111

Here is the code to print characters received:

 

The serial ruby gem https://github.com/hparra/ruby-serialport.

Its time to bench and try to push data the faster way possible ;) … can be interesting for snapshot of mean sonor level for example…

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *