All Hello Worlds can be downloaded from this Github project.
Processing
-
Download and Install processing in your computer
-
Create new Processing sketch
-
Write the code
-
Import the necessary libraries. Serial library is necessary to communication with Arduino
- Add the required libraries from Sketch / Libraries
- Import the libraries.
-
Add required multimedia files.
- Sketch / Add File
-
Save the sketch (it will be saved as sketchbook, the multimedia files inside the data folder).
-
Connect your sensor / actuator to the serial port
- You can use this sensor data random generator from Arduino.
-
Press the Run button.
FILES:
-
Processing files:
- Hello World
- Hello World Sensor
- Images: Parrot
-
Arduino files: sensor data random generator
Tkinter
-
Download an install Python.
-
Create a virtual environment before installing further python packages.
python -m venv fabacademy
-
Access the virtual environment
-
In Windows:
fabacademy\\Scripts\\activate.bat
-
In Linux (or using a linux console such as bash):
source fabacadent/bin/activate
-
-
Write a file in the text editor
-
Run the helloworld script:
python helloworld.py
-
You can test Tkinter using
python -m tkinter
-
If you want to access the serial you need to install pySerial
pip install pyserial
FILES:
-
Python files:
-
Arduino files: sensor data random generator
Blynk
-
Install Blynk app in your mobile phone either Android or Iphone
-
When you open the App for first time, you need to create a new account. You will receive via e-mail an authentication toke for each one of the projects you create in Blynk
-
Install Blynk Library in your Arduino environment. More details instructions: here
- You can use the Arduino Library Manager > Blynk library
-
Install the right board for your Arduino: for instance a ESP8266 or a ESP32
- Some boards might required additional drivers in your computer. E.g. the Wemos D1 Mini
-
In Arduino Tools be sure you choose the rigth board in Tools: e.g. Lolin Wemos D1 mini, Wemos D1 R1, Node MCU, or ESP32Wrover Module (ESP32-CAM)
-
Create a New Blynk Project in your phone.
- Select the right board and provide a name for the Project
- You will receive the auth token to your email address
-
Add Widgets, associate each Widget to the right Pin or Virtual Pins. You can start with a button.
-
Create or upload Arduino code to your Arduino IDE. Different examples in your Arduino Examples folder
1. Do not forget to include the wifi network ssid and the password
2. Include the authentication token for your app you have received in your email
- Be sure your phone and your Board is connected to the same network (the one you have added in the sketch).
- Run sketch in your device
- Run blynk app in your mobile phone.
- From the app you can check if your device has been connected or not to your app
FILES
-
Arduino files:
Adafruit IO
Configure AdafruitIO
- Create an account in AdafruitIO
- Go to Dashboards -> New Dashboard
- Create new Block -> We can start with with a Toggle Button
- Associate a feed with it -> We can create a new one or use an existing one.
- Add the values that are going to be published whenever you are going to Toggle teh button
- Press the Create block.
Configure Arduino
-
Install the following libraries (Using the Sketch> Manage Libraries) in your Arduino: Adafruit IO Arduino, Adafruit MQTT library, Arduino HttpClient.
- Installing Adafruit IO Arduino will install the rest
-
Create the sketch.
-
Store all configuration properties in an external file: config.h
-
You need to define there:
-
IO_USERNAME -> Your username in Adafruit IO
-
IO_KEY -> Your developer keys in Adafruit IO. Can be found from the My Keys menu at the top.
-
IO_FEED_NAME -> The name of the feed with which you want to interact with.
-
WIFI_SSID
-
WIFI_PASS
-
-
Run app.
Run app in your device, and interact with it using the dashboard. It might take a time to connect (even a minute). It is important to provide feedback through serial communication.
FILES:
MIT App Inventor
-
Create a MIT App Inventor app
-
Create a new Project
-
Create the UI, by adding widgets
- Include non visible functionality for additional communication functionality: Bluetooth, NFC ...
-
Open the blocks view. Edit the code.
-
Download teh MIT AI2 Companion app in your mobile phone.
-
Press the Connect > AI Companion.
- Scan the QR code with the AI2 Companion app
-
Start sketch that can access to Bluetooth
FILES:
- Hello World
- HelloArduino.aia
- Arduino Sketch.-> Connect HC-05 or similar to Arduino BT pins 10 and 11.
Node Red
Soon available
Javascript
- Install Node.js
Soon available