Posts

Showing posts with the label serial communication

Wise Clock 4 with remote "Alarm stop" button

The Ramos project brought the novel idea of a wireless alarm-stop button: instead of just reaching out to  press on the top of your nightstand alarm clock, you now have to actually get out of the bed and walk to a remote corner of your dwelling to click on a keypad. No chance you will return to sleep afterward :) This remote alarm-stop feature for  Wise Clock 4   can be implemented in several different ways, all of them using of the on-board XBee socket: through a Bluetooth module; through WiFi, using the Roving Networks WiFly module; through XBee radios. The cheapest and easiest would be the Bluetooth solution, providing that you already have a BT device (e.g. Android phone/tablet) to communicate with. In pseudo-code, it should look like this: if (alarm is ON) {     while (Serial1.available())     {        read characters received;        if (it is the expected string)        {   ...