PORTD = B00000100; //Turn digital pin 2 "IS" HIGH "NOT" LOWPORTD = B00000000; //Turn digital pin 2 "IS " LOW "NOT" HIGH
"Remote Sensor" is an example application using Objective Development'sfirmware-only USB driver for Atmel's AVR microcontrollers. It is a data loggerwith wireless sensors transmitting measured data in the 433 MHz or 868 MHzrange to a central receiver. The central receiver is connected to the USB portof a host computer. This project contains circuit diagrams and source code forthe firmware of the sensors and the receiver. It also contains an example forthe host software: A daemon logging incoming data to a CSV file and a PHPscript for web servers which makes diagrams from the CSV table. The hostsoftware can be compiled on Windows using libusb-win32 and MinGW.Objective Development's USB driver is a firmware-only implementation of theUSB 1.1 standard (low speed device) on cheap single chip microcomputers ofAtmel's AVR series, such as the ATtiny2313 or even some of the small 8 pindevices.