Here is the code:
#includeYou need the UART library from Peter Fleury (http://jump.to/fleury).<
avr/io.h>
#include<
avr/interrupt.h>
#include "uart.h"
#ifndef F_CPU
#define F_CPU 11059200
#endif
#define UART_BAUD_RATE 115200
int main(void)
{
uart_init( UART_BAUD_SELECT(UART_BAUD_RATE,F_CPU) );
sei();
uart_puts("Starting low cost logic analyzer.\n");
while (1)
{
uart_putc( PINB + '0' );
uart_putc( '\r' );
}
}
Unfortunatly i have no software for the data analysis. I saved the data with HTERM as text file so far.
Next project was the modification of my good old LEGO Technic truck.
He needs a huge amount of AA batteries - more than i had. But i wanted to make it work
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCKgk_9tk1meRIsihafpNKGiAJGYMjy7nM8sNsPJ4A75Ln5Ic1VmqKXbMJFUQigH9ukiMp2idjVaYT-_kbrNVwdG1lLa1KTzWHIGjqDlvdjFFtODpIUxAPXnTm7LLp2uK8k23ZZhyphenhyphenBMfbB/s320/DSC00683.jpg)
And it worked. With my old self made power supply it was a joy to play with the truck. ; )
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSnvTyPs1Dlndn2wiHa2-BadtO4ee-p8zU5t2QNY1guw-XYGtQKP3izVlX0zx8XE4EToH-Xb4CkwpI7yMzOS98R5IqZ-4-34TE1skkZfyaQuGbzgsj34K-9TA4MrOD6dQLEA8Jk5Oleta6/s320/DSC00689.jpg)
No comments:
Post a Comment