Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

The flashing virtual LED

The flashing virtual LED

This is a LED that does not really exist, it is in your imagination only. So how do you know wether this LED is on or off? By serial communication to the PC.
Personally I thought this was rather funny, but I know from experience that I’m probably the only one. Anyway, it did reduce the number of parts on the breadboard. Ah, did I mention I moved to a different type of Microcontroller. This is the 16F877 which is much more powerful (alas at a much higher price, about 9 euros).

I used one of Wouters sources to write this program to speed up the development a bit. If the Wisp628 programmer is used it can remain in place during serial communications, assuming it is switched to pass through mode using the command

xwisp.py tty 1200

After that the small Xwisp windows shows the communication that is taking place, or you can switch it off and use another terminal package, like I did.

The source is rather straight forward. Interesting in the source is that the two separate pieces of data are separated by 0’s, so the program doesn’t have to count. The definition part was written by Wouter, and I have no clue why he uses two stop bits instead of the usual one.

Visit Here for more.







 

More Articles to Read

Peeqo is a desktop bot that communicates through GIFs
Peeqo is a desktop bot that communicates through GIFs
Using a Programmable Input Multiplier to Minimize Integer Boundary Spurs
Using a Programmable Input Multiplier to Minimize Integer Boundary Spurs
Serial seven segment LED display shield
Serial seven segment LED display shield
G-code controlled drawing plotter
G-code controlled drawing plotter
An Arduino round word clock
An Arduino round word clock
The Sandwich-o-Matic will make your lunch automatically
The Sandwich-o-Matic will make your lunch automatically
Scalar Network Analyser Jr
Scalar Network Analyser Jr
An Arduino-controlled automated whiskey distillery
An Arduino-controlled automated whiskey distillery
The Rex800 looks like a dinosaur Terminator
The Rex800 looks like a dinosaur Terminator
Home Environment Monitor
Home Environment Monitor
Understanding the Operation of the Frequency Synthesizer in Maxim’s RF Transceivers
Understanding the Operation of the Frequency Synthesizer in Maxim’s RF Transceivers
App note: EPIC: Electro-Pyrotechnic Initiator Chip Resistor
App note: EPIC: Electro-Pyrotechnic Initiator Chip Resistor
Noisy ESP8266
Noisy ESP8266
App note: Noise analysis for high-speed op amps
App note: Noise analysis for high-speed op amps
Skill Sunday: Arrays
Skill Sunday: Arrays
App note: Infrared remote control implementation with MSP430FR4xx
App note: Infrared remote control implementation with MSP430FR4xx
Gesture Controlled Smart Home
Gesture Controlled Smart Home
Design for a Wideband, Differential Transimpedance DAC Output
Design for a Wideband, Differential Transimpedance DAC Output
Wrist thrusters let you fly through the water effortlessly
Wrist thrusters let you fly through the water effortlessly
Bertan/Spellman 225-20R HV power supply teardown
Bertan/Spellman 225-20R HV power supply teardown

Top


Shares