The "Call and Response" method of serial communication is the most robust way to send data (such as multiple sensors) to and from the Arduino and Processing / P5. Note that is has one disadvantage: the Arduino waits until your receiving software (e.g. Processing) sends something back = i.e. "responds". So it seems frozen and... Continue Reading →
Holonic iPhone sensor app
Holon.ist is a system for flexible processing of sensor data into MIDI and OSC. Support for hardware sensors and IoT dataiPhone and iPadApple WatchBose AR BetaSuunto MovesenseEstimote https://youtu.be/ThjrLwZmDPU
Capacitive Sensing example
Here is a good introduction to capacitive sensing. Read through it to see possible uses and helpful tips for making your own. Here is my simplified and clarified revision of the example code: https://gist.github.com/ericjforman/8fd70b69a1751588aee1f9fcffa7cd42 Don't forget to install the CapacitiveSensor library from the Arduino IDE: Go to menu Sketch / Include Library / Contributed Libraries, then... Continue Reading →
Clearing background on demand in Processing
In older versions of Processing, you could modify the canvas outside of the draw() function. In Processing 3 and above, this is no longer possible, due to a more logical and organized codebase. Therefore if you want to do something like clear the background when a serial event indicates a button was pressed, this no longer works: ... Continue Reading →
Improved serial port detection in Processing
Processing after v2.1 has an improved method of listing available serial ports. // if using Processing 2.1 or later: // println(Serial.list()); // old method printArray(Serial.list()); // improved function This will output the list of serial ports in a much nicer to read format, including port number. So instead of /dev/cu.Bluetooth-Incoming-Port /dev/cu.usbserial-DN01JDLP /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbserial-DN01JDLP you get... Continue Reading →
More Arduino Tutorials from Tronix
"This is the start page for our series of over fifty Arduino tutorials. Each tutorial from chapter zero to thirteen will cover a variety of topics and lessons, then from chapter fourteen each chapter will cover a particular topic. If you are looking to learn about the world of Arduino – this is a great... Continue Reading →
Sound synthesis on an Arduino
The Arduino has limited memory and processing speed, which makes real-time sound synthesis difficult. Usually people send MIDI from an Arduino to a capable output device of some kind. However the Mozzi library attempts to bring some synthesis chops to the Arduino itself. "Mozzi brings your Arduino to life by allowing it to produce much... Continue Reading →
Codebender for web-based Arduino programming
"In essence, codebender is an online IDE for makers, artists, makers, engineers and hardware enthusiasts. You can use it to program any Arduino-compatible device, and we hope to add support for other platforms that makers use (like the Stellaris Launchpad, Raspberry Pi, etc.) in the near future." "On top of an IDE, codebender is also... Continue Reading →
Simple object trails in Processing
Two simple methods for a fading trail effect. The first uses an array and draws every object every frame, gradually decreasing each object's fill opacity. The advantage of this is you can specify how many objects in the trail, and have different length trails for different objects, and no other things on screen are disturbed.... Continue Reading →
Smoothing sensor input
Analog sensor input (flex, distance, sound, etc.) often has noise or jitter in the data it provides. Some of this can be improved in hardware, but often it's easier to do in code. There is a smoothing example built in to the Arduino, and a smoothing function on the Arduino site. Here is my own... Continue Reading →