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 »PIC ADC (Analog to Digital Conversion)
There are instances when digital systems need to interface with devices that produce analog signals, such as sensors and radio equipment. In such cases, the digital system, such as a microcontroller, needs an analog-to-digital converter (ADC) to handle the analog signal.
Read More »Blink a LED with Bonescript
Blinking On-board LEDs The simplest bonescript we can create right now is to blink one of the four user LEDs. The user LEDs are those four blue LEDs just above the miniUSB port: On Cloud9 IDE (192.168.7.2:3000), open a new file (click the + tab) and then paste the following …
Read More »Introduction to Bonescript and the Cloud9 IDE
When you browse a website, you are requesting the contents of the web page from or using the calculating capabilities of a server somewhere. That server is almost always a Linux machine and server-side scripts like PHP, Python, and Node.Js are used to “talk” to these servers.
Read More »The Beaglebone Black Hardware
Ah, the Beaglebone Black. This credit card-sized computer was meant to be the Raspberry Pi’s competitor and sure lives up to it. Its users are way less than RPi’s, which is understandable, given the Pi’s appeal to beginners and the like. But if you would ask me what to choose …
Read More »How to use 16×2 LCD with Raspberry Pi
The 16×2 parallel LCD (HD44780) is a popular liquid crystal display among hobbyists due to its cheap price and ease of use. The Arduino platform recognizes its popularity and created the LiquidCrystal library for it. The Arduino LCD tutorial covers that. I attempted to port the LiquidCrystal library to the …
Read More »Blink On-board LEDs on STM32F1 Discovery
In my last post, I presented how to get started with the STM32F1 Discovery embedded evaluation board by downloading a package and running the example code. This time, I will teach you how to make a simple STM32F1 program from scratch.
Read More »Arduino Sensor Interfacing Tutorial
A sensor is a device that transforms physical quantities like temperature, humidity, pressure, etc., to an electrical signal. Moreover, this signal is often fed to a microcontroller like the Arduino for further processing, displaying or recording. This data from the sensor are often analog in nature, i.e., they vary over …
Read More »PIC16 I2C Tutorial
To continue with our tutorial on synchronous serial with PICs, we will know look at I2C, another popular protocol used by sensors, displays and memory devices.
Read More »