revealinghour.in
Ruby Arduino
Revealing Hour Creations
@nishantmodak
revealinghour.in
Talk
Physical
Computing
#electronics #ruby #arduino #sensors
revealinghour.in
revealinghour.in
revealinghour.in
Image Source : IBM Smarter Planet
revealinghour.in
Image Source : IBM Smarter Planet
IFTTT + Hardware
What is Arduino?
revealinghour.in
What is Arduino?
revealinghour.in
What is Arduino?
revealinghour.in
What is Arduino?
revealinghour.in
What is Arduino?
revealinghour.in
Program via
USB
External
Power 9v
14 Digital IO
Pins
µ
controller
6 Analog IO
Pins
revealinghour.in
revealinghour.in
Ethernet Shield
Why Arduino?
revealinghour.in
MIT's Handyboard
Phidgets
Netmedia's BX-24
It is
inexpensive
cross-platform
ide
open-source s/h/w
revealinghour.in
Hardware
Software
Docs
Brand
CC-SA-BY
CC-SA-BY
GPL
TM
revealinghour.in
InduinoX
revealinghour.in
What can
YOU
do with
an
Arduino?
revealinghour.in
revealinghour.in
revealinghour.in
revealinghour.in
revealinghour.in
revealinghour.in
revealinghour.in
revealinghour.in
TDD
revealinghour.in
How can
YOU
work with
an
Arduino?
revealinghour.in
revealinghour.in
upload Serial
monitor
console
revealinghour.in
int led = 13;
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
void loop() {
digitalWrit...
Options in
RUBY for
arduino ?
revealinghour.in
1 Serial Port Gem
• Ruby library
• RS-232 serial ports
sp = SerialPort.new(port_str,
baud_rate, data_bits, stop_bits,
pari...
2 RAD = Ruby Arduino Dev
+Rake Task
revealinghour.in
Program Sketch
Arduino
Class Methods RubyToC
Assembly
Arduino C++
Rake tasks AVR GCC/Dude
revealinghour.in
revealinghour.in
• Standalone
• Small• Service
3 Dino
revealinghour.in
revealinghour.in
Logical
equivalent of the
arduino board
revealinghour.in
Finds Arduino
Communicates
with the world
revealinghour.in
revealinghour.in
Write
revealinghour.in
Read
revealinghour.in
revealinghour.in
• Stepper Motor
• DC Motor
• LDR
• Temperature
• RGB LEDs
Arduino & Web
revealinghour.in
revealinghour.in
• Arduino Hosted
• Web sockets
• Serial to Net
• Rails
• Sinatra
revealinghour.in
board=Dino::Board.new(Dino::TxRx::Serial.new)
led = Dino::Components::Led.new(pin: 13,
board: board)
put ...
revealinghour.in
revealinghour.in
revealinghour.in
 
revealinghour.in
Thanks
• Pratik Chaudhari (@c_pratik)
• Siddharth Bhagwan
• Prashant
• @austinbv – Creator of Dino
revealinghour.in
References
bit.ly/arduinolinks
revealinghour.in
revealinghour.in
PUSH TO DEPLOY
Upcoming SlideShare
Loading in...5
×

Ruby Arduino (RubyConfIndia 2013)

388

Published on

We all love Ruby for writing software scripts, websites, applications. Would it not be awesome to use it also for interacting with hardware?

With the proliferation of internet connected devices or usually called as 'The Internet of Things' its become important to explore opportunities with hardware hacking for fun and everyday automation.

The talk aims to be an introduction of how to interact with an arduino kit using ruby, available gems and other possibilities. It is meant for beginners who are just starting out with Arduino / Ruby and want to see the what it beholds.

At the end of the talk 2 projects were demonstrated.
1. Blinking Lights (Red / Green) on twitter sentiment of #rubyconfindia
2. A Light Seeking Robot Car

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
388
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Ruby Arduino (RubyConfIndia 2013)"

  1. 1. revealinghour.in Ruby Arduino Revealing Hour Creations @nishantmodak
  2. 2. revealinghour.in
  3. 3. Talk Physical Computing #electronics #ruby #arduino #sensors revealinghour.in
  4. 4. revealinghour.in
  5. 5. revealinghour.in Image Source : IBM Smarter Planet
  6. 6. revealinghour.in Image Source : IBM Smarter Planet IFTTT + Hardware
  7. 7. What is Arduino? revealinghour.in
  8. 8. What is Arduino? revealinghour.in
  9. 9. What is Arduino? revealinghour.in
  10. 10. What is Arduino? revealinghour.in
  11. 11. What is Arduino? revealinghour.in
  12. 12. Program via USB External Power 9v 14 Digital IO Pins µ controller 6 Analog IO Pins revealinghour.in
  13. 13. revealinghour.in Ethernet Shield
  14. 14. Why Arduino? revealinghour.in MIT's Handyboard Phidgets Netmedia's BX-24
  15. 15. It is inexpensive cross-platform ide open-source s/h/w revealinghour.in
  16. 16. Hardware Software Docs Brand CC-SA-BY CC-SA-BY GPL TM revealinghour.in
  17. 17. InduinoX revealinghour.in
  18. 18. What can YOU do with an Arduino? revealinghour.in
  19. 19. revealinghour.in
  20. 20. revealinghour.in
  21. 21. revealinghour.in
  22. 22. revealinghour.in
  23. 23. revealinghour.in
  24. 24. revealinghour.in
  25. 25. revealinghour.in TDD
  26. 26. revealinghour.in
  27. 27. How can YOU work with an Arduino? revealinghour.in
  28. 28. revealinghour.in upload Serial monitor console
  29. 29. revealinghour.in
  30. 30. int led = 13; void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); } void loop() { digitalWrite(led, HIGH); // turn the LED on delay(1000); // wait for a second digitalWrite(led, LOW); // turn the LED off delay(1000); // wait for a second } revealinghour.in
  31. 31. Options in RUBY for arduino ? revealinghour.in
  32. 32. 1 Serial Port Gem • Ruby library • RS-232 serial ports sp = SerialPort.new(port_str, baud_rate, data_bits, stop_bits, parity) while sp.gets.chomp do ... end revealinghour.in
  33. 33. 2 RAD = Ruby Arduino Dev +Rake Task revealinghour.in
  34. 34. Program Sketch Arduino Class Methods RubyToC Assembly Arduino C++ Rake tasks AVR GCC/Dude revealinghour.in
  35. 35. revealinghour.in • Standalone • Small• Service
  36. 36. 3 Dino revealinghour.in
  37. 37. revealinghour.in Logical equivalent of the arduino board
  38. 38. revealinghour.in Finds Arduino Communicates with the world
  39. 39. revealinghour.in
  40. 40. revealinghour.in Write
  41. 41. revealinghour.in Read
  42. 42. revealinghour.in
  43. 43. revealinghour.in • Stepper Motor • DC Motor • LDR • Temperature • RGB LEDs
  44. 44. Arduino & Web revealinghour.in
  45. 45. revealinghour.in • Arduino Hosted • Web sockets • Serial to Net • Rails • Sinatra
  46. 46. revealinghour.in board=Dino::Board.new(Dino::TxRx::Serial.new) led = Dino::Components::Led.new(pin: 13, board: board) put ‘/forward’ do led.on end Sinatra
  47. 47. revealinghour.in
  48. 48. revealinghour.in
  49. 49. revealinghour.in  
  50. 50. revealinghour.in
  51. 51. Thanks • Pratik Chaudhari (@c_pratik) • Siddharth Bhagwan • Prashant • @austinbv – Creator of Dino revealinghour.in
  52. 52. References bit.ly/arduinolinks revealinghour.in
  53. 53. revealinghour.in PUSH TO DEPLOY

×