background preloader

Microcontrollers

Facebook Twitter

Bluescripts:overview [teho Labs Docs] In the video at above we show the BlueZigbee example, which is based on Eridani (available for purchase here). To get BlueScripts go to the Android Market. BlueScripts is a program for the scripting of Bluetooth ASCII messages to Bluetooth radios via an Android phone and an XML file. It is open source. BlueScripts allows the user to automate sending messages to Bluetooth radios for embedded system projects without the need to input the messages on a terminal application or write a separate Android program. The program looks for BlueScripts.xml in the root directory. This file is parsed for “scripts”. Each script contains “actions” which are targeted at a single Bluetooth MAC address. Each script creates a clickable item in the scrolling menu that will execute the script's actions on click.

Many embedded system applications need simple message communications between two devices of a repetitive nature. BlueScripts is based on the BluetoothChat example program provided by Google. XML Format. 16 by 4-bit memory on a cell matrix. Circuit translation: 16 by 4 bit memory. Circuit translation: 8 bit ALU. Microcontroller | KF5OBS /IP. Protolab / TutorialSensors. This group of tutorials will help you work with the continuous input values provided by analog sensors - potentiometers, accelerometers, distance rangers, etc.

Dimmer: Fading an LED with a Potentiometer In this example we'll build a light dimmer: a knob connected to a light so that when you turn the knob, the light increases or decreases in brightness. We'll use a potentiometer (Wikipedia entry). The potentiometer has three terminals - the resistance between the first and the third terminal is constant (10k Ohms in our case). The resistance between terminals 1 and 2 (and between 2 and 3) varies as you turn the shaft of the potentiometer. If you apply 5V to terminal 1, connect terminal 3 to Ground, you will get a continuously varying voltage at terminal 2 as you turn the shaft (Why that is the case will become clearer once you've learned about voltage dividers further below).

The code for this example is led_dimmer_01 Questions to answer to yourself/Extensions if you're ahead: Flex sensor.