DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Securing Your Software Supply Chain with JFrog and Azure
Register Today

Trending

  • Transactional Outbox Patterns Step by Step With Spring and Kotlin
  • Chaining API Requests With API Gateway
  • Building a Flask Web Application With Docker: A Step-by-Step Guide
  • Integrating AWS With Salesforce Using Terraform

Trending

  • Transactional Outbox Patterns Step by Step With Spring and Kotlin
  • Chaining API Requests With API Gateway
  • Building a Flask Web Application With Docker: A Step-by-Step Guide
  • Integrating AWS With Salesforce Using Terraform
  1. DZone
  2. Data Engineering
  3. IoT
  4. Johnny Five: a nice introduction to Arduino

Johnny Five: a nice introduction to Arduino

Lieven Doclo user avatar by
Lieven Doclo
·
Apr. 08, 14 · Interview
Like (0)
Save
Tweet
Share
9.01K Views

Join the DZone community and get the full member experience.

Join For Free

Learning Arduino is not simple, especially if you’re not C-minded. See, Arduino is programmed in C and I’m not afraid to say my C is quite rusty. However, there have been some new developments lately that enable you to program an Arduino with JavaScript.

Well, it’s not actually programming. There is something called Firmata, which enables other systems to communicate and read/write analog and digital pins on an Arduino running the Firmata sketch. One of those systems is called Johnny Five (for those wondering where the name comes from, go and see Short Circuit). It’s an Node.js and thus JavaScript based framework that interacts with Firmata so that you can read/write the pins on your Arduino.

It took me a while to see the potential, but if you think about it and join a Raspberry Pi running Node.js with an Arduino with Firmata, there’s not a lot you can’t do.

For my project, it’s definitely worth exploring. There’s one thing that I already know of that will cause problems and that’s the fact that Firmata doesn’t support software serial communication. My current design needs that to read the pH and EC sensors. However, this is only a minor issue, as it’s possible to make my own circuit that reads a pH and EC sensor through an analog port. This would require me to do the calibration and soldering myself, but again, not that big an issue.

For the rest most of the things I need to do I can do with Johnny Five (controlling my peristaltic pumps and writing to the LCD). All in all, if I get the sensors to work correctly, it’ll even be a lot easier as I should be able to integrate the Johnny-Five stack into the MEAN stack I wanted to use for my front-end. Since most of my logic will be on the Pi, this would also allow me to do this project with an Uno as the sketch for Firmata runs on an Uno.

As it stands, I’m going to give Johnny Five a shot.

arduino

Published at DZone with permission of Lieven Doclo, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • Transactional Outbox Patterns Step by Step With Spring and Kotlin
  • Chaining API Requests With API Gateway
  • Building a Flask Web Application With Docker: A Step-by-Step Guide
  • Integrating AWS With Salesforce Using Terraform

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: