Home / Roland Pelayo (page 36)

Roland Pelayo

Roland Pelayo started TMM in 2015. He is a firmware engineer who has over ten years of experience in developing electronic and microcontroller-based systems. Roland's designs include medical devices, security and automation, robots, emergency alert systems, and educational training modules.   Have something that you like Roland to write about here? or do you need consultation for microcontroller firmware projects? just contact him via the contact page.

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

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 »

NodeMCU MQTT Tutorial

NodeMCU Webserver

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 »

Controlling a Servo Motor with BoneScript

beaglebone black adc

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

beaglebone black adc

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

beaglebone black adc

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 »