In this tutorial, I will show you how to add an LCD hat to your Raspberry Pi. This is an alternative to connecting a Liquid Crystal Display to your Pi through its HDMI port.
Read More »Arduino Wireless Control
Wireless control is much more convenient, especially at a significant distance. Imagine having wires from your controller to your robot! Also, making your project portable is essentially saying making it wireless (unless you still need to plug it on mains). In this tutorial, we’ll look at popular methods for achieving …
Read More »Arduino GPS Tutorial
Global Positioning System (GPS) has been around since the 80’s and is still one of the most important features you can add to any electronic system. The idea of tracking something (or someone) is cool enough but doing so without a telephone or an internet connection is much cooler. In …
Read More »Using the 0.96″ Tiny OLED Display with Arduino
If somehow a 16×2 LCD or a Nokia 3310/5110 LCD is too large for your project, then there’s a 0.96″ display you can add to your arsenal. This display is OLED (organic LED) instead of LCD – which means the backlight is unnecessary. In this tutorial, we will look at …
Read More »Creating an Arduino Bluetooth Serial Interface
Bluetooth is the most popular way of connecting an Arduino to a smartphone wirelessly. In this tutorial, we will create an Arduino-bluetooth interface and send messages from an Arduino to a smartphone and Arduino to a personal computer.
Read More »NodeMCU MQTT Tutorial
So far, we’ve been using HTTP in our NodeMCU web servers and while it works, the protocol is not really the best way for sending and receiving small-sized data for IoT applications. In this tutorial, I will introduce you to MQTT using ESP8266.
Read More »NodeMCU Ajax: Dynamic Sensor Data on Web Page
Last time we managed to display sensor data to a NodeMCU web server. The problem with that code is that we need to refresh the page manually in order to update the sensor value. A better method is to use Ajax (asynchronous javascript and XML) so that we can request …
Read More »Controlling a Servo Motor with BoneScript
Using the Beaglebone Black’s PWM Bonescript also includes an analogWrite function which utilizes the 8 PWM pins of the Beaglebone Black. As you might already know, PWM allows us to control a servo motor. The analogWrite function accepts the pin name, duty cycle, frequency, and callback function as parameters. The …
Read More »Analog Signals with BeagleBone BoneScript
Using the Beaglebone Black ADC One of the advantages of the Beaglebone Black over the Raspberry Pi is the presence of an analog-to-digital converter. There are 7 analog inputs, all at P9: To process analog signals, we’ll be using the analogRead() function. Note that the analog pins can only read …
Read More »Input to BeagleBone Black with BoneScript
Using a Button As you’ve noticed, the functions in bonescript are similar to Arduino’s. If we are to use an input device such as a button, switch, etc, we only need to change the direction using pinMode: var b = require('bonescript'); b.pinMode("P9_12", b.INPUT); The script below reads the state …
Read More »