Quantcast
Channel: javascript – code, circuits, & construction
Browsing latest articles
Browse All 9 View Live

Serial to Browser using node.js

I’ve been learning a little node.js lately, and wanted to see how hard it would be to get data from an Arduino into a web page in near realtime using node. Turns out it’s pretty easy. Here are my first...

View Article


Serial to JSON in Node.js and Arduino

Node.js is great for making web services, and node-serialport makes it very easy to connect to serial devices on your computer. In my last post, I showed how to connect an Arduino microcontroller...

View Article


Using REST as a command protocol for web-to-serial applications

The address you type into your browser’s address bar is often the location of a particular document on a server. For example, http://tigoe.net/index.html refers to an HTML document living in the main...

View Article

Node.js on the Arduino Yún

Recently, Federico Fissore added node.js to the package repository for the Arduino Yún. Here’s how you get node to communicate with the Arduino processor on the Yún via the Bridge library. To do this,...

View Article

HTML Interface For a Digital Multimeter

It’s been a long time since my last post on this site. Time to update it a bit. Introduction Recently, some colleagues of mine and I were looking for a digital multimeter that could be used by people...

View Article


This Week in Code: MQTT Fun

Work’s been quite busy lately, with several things going on at once, and few things completed. Many pieces of what I am doing are scattered over the web, on my gitHub account, my various class sites,...

View Article

Glitch and p5.js and p5.serialport

David Bouchard of Ryerson University gave me a great tip: Glitch.com works well for p5.js projects. It’s a nice alternative to the p5.js editor, particularly because it supports sharing of live code....

View Article

Serial Communication: Sending a 10-Bit (or two-byte) Value

When communicating between a microcontroller and a personal computer using asynchronous serial communication, you often need to transmit a value that is greater than 255. For example, if you want to...

View Article


What I Did in January

January turned out to be a good time for tidying up my gitHub repos, because it was cold and there was no incentive to travel, and I had to quarantine for a few days in the midst of it (no symptoms,...

View Article

Browsing latest articles
Browse All 9 View Live