Nerd Ralph writes: I’ve written a few software UARTs for AVR MCUs. All of them have bit-banged the output, using cycle-counted assembler busy loops to time the output of each bit. The code requires interrupts to be disabled to ensure accurate timing between bits. This makes it impossible to receive data at the same time […]
Tag Archives: code
Full Arduino code for poultry egg incubator with humidity sensor
A DIY Arduino-based poultry egg incubator with humidity sensor @ reuk.co.uk. Neil writes: This device makes use of an always on motor which turns the eggs six full turns every 24 hours. Many of our other incubators have motors which have to be set up to run for a certain length of time a certain […]
RFM69_ATC: Automatic Transmission Control
Felix of LowPowerLab writes: There is now a new extension to the RFM69 library. It’s called RFM69_ATC aka Automatic Transmission Control. Many thanks to Tom Studwell who implemented this and shared it in the forum. The basic idea behind this extension is to allow your nodes to dial down transmission power based on the received […]
Counter project recorded in C
Ricardo of Electropepper writes: So i’ve decided to rewrite the code in C language using the MikroC compiler for the Counter project. I have chosen MikroC compiler for its easy of use and good documentation, unfortunatelly the IDE editor simple sucks big time, so it really is good for me to tolerate it. I also got […]
Moving projects from MPLAB 8.x to MPLAB X
Bogdan (Arhi in the forum) moved nearly 50 projects from MPLAB 8 to MPLAB X over the last few weeks, including the USB Bit Whacker 32. We asked if he could point out any bugs he might have encountered. Read the small interview below. UBW32 is a large project, how long did it take you […]
Dual-tone multi-frequency signal generator and detector
Robots wrote a open source Dual-Tone Multi-Frequency signal generator and detector for his STM32 based development board. The code is available via github. DTMF generator is based on AVR314 appnote, and the detector is my practice in signal processing using “Goertzel algorithm”. Everything is written for integer/fixedpoint arithmetics. (no floats at all)… Generator generates signal […]
HOW-TO: Learn PIC serial UART with your Bus Pirate
The Bus Pirate is a handy debugging tool, but it’s also a 16 bit PIC 24FJ64GA002 development board. You don’t need a programmer to play, just upload the firmware over USB using the Bus Pirate’s nearly-impossible-to-brick bootloader. It’s easy to go back to the original Bus Pirate firmware at any time. This demo is step […]
Small CPU core on a FPGA
Here is the paper James Bowman presented at EuroForth 2010 detailing his project to build a small 16-bit CPU core Forth machine on a Xilinx FPGA. This 200 lines of Verilog code could be helpful to anyone studying FPGA project design. Via Hack a Day
