====== Welland Valley Amateur Radio Society Project ====== ===== Introduction ===== * A winter project for WVARS group, PCB designed by Tim, based on the original stripboard design. ===== Components ===== ^QTY ^Description ^Where to find ^Cost (Estimated)^ |1 | Main PCB | Supplied by Colin |FOC | |1 | RFM69HW Transceiver 868MHz | [[https://www.ebay.co.uk/itm/RFM69HW-868Mhz-20dBm-HopeRF-Wireless-Transceiver-RFM69HW-868S2-Fit-Remote-HM/281985740697?hash=item41a7a8ef99:g:7f4AAOSwAvJW-8Vq|Link to eBay seller]] |£1.73p | |1 | MPL3115A2 Barometric Pressure/Altitude/Temperature Sensor | [[https://www.ebay.co.uk/itm/MPL3115A2-I2C-Intelligent-Temperature-Pressure-Altitude-Sensor-V2-0-Arduino/401347067700?hash=item5d72263f34:g:nMkAAOSw-89ZQJPq|Link to eBay seller]] | £3.44p | |1 | 28 pin IC Socket | [[https://www.ebay.co.uk/itm/20-PCS-28-Pin-DIL-DIP-IC-Socket-PCB-Mount-Connector-NEW/221895717654?hash=item33aa03f316:g:9CwAAOSwsB9WBN6G|Link to eBay seller]] | £1.21p (For pack of 10, but only one required) |1 | ATMEGA328PU | Supplied by James 7 available | FOC | |1 | MCP1700-3302E Voltage Regulator TO92 | [[https://www.ebay.co.uk/itm/MICROCHIP-MCP1700-3302E-TO-IC-V-REG-LDO-250MA-TO-92-3/181410112921?hash=item2a3ce2a599:g:Wc4AAOxy7vJTc5cd|Link to eBay seller]] | £2.47p | |1 | LED | Junk Box | FOC | |1 | SMA PCB connector | [[https://www.ebay.co.uk/itm/SMA-Female-Solder-PCB-1-6mm-Edge-Mount-RF-Connector-UK-Seller/123064691216?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649|Link to eBay seller]] | £2.30p | |2 | Ceramic Cap “104” = 0.1 uF | Junk Box | FOC | |2 | 35v Cap “105” = 1.0uF | Junk Box | FOC | |3 | 0.25w 10k carbon resistor | Junk Box | FOC | |1 | 0.25w 39k carbon resistor | Junk Box | FOC | |1 | 0.25w 1.5k carbon resistor | Junk Box | FOC | {{:guides:pcb_wvar.jpg?400|}} ===== Installation ===== ==== Burn Bootloader ==== * Insert the following code into //boards.txt//, this is usually in your Arduino directory in //hardware/avr/// ############################################################## atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock) atmega328bb.upload.tool=avrdude atmega328bb.upload.protocol=arduino #atmega328bb.upload.protocol=stk500 atmega328bb.upload.maximum_size=30720 atmega328bb.upload.maximum_data_size=2048 atmega328bb.upload.speed=57600 atmega328bb.bootloader.tool=avrdude atmega328bb.bootloader.low_fuses=0xE2 atmega328bb.bootloader.high_fuses=0xDA atmega328bb.bootloader.extended_fuses=0x05 atmega328bb.bootloader.path=arduino:atmega atmega328bb.bootloader.file=atmega/ATmegaBOOT_168_atmega328_pro_8MHz.hex atmega328bb.bootloader.unlock_bits=0x3F atmega328bb.bootloader.lock_bits=0x0F atmega328bb.build.mcu=atmega328p atmega328bb.build.f_cpu=8000000L atmega328bb.build.core=arduino:arduino atmega328bb.build.variant=arduino:standard * Insert your ATMega328 into an Arduino board (e.g. UNO) and using a AVR Programmer such as AVRISP mkII burn the arduino bootloader onto the ATMEGA328 chip ==== Flashing the code ==== * Move the chip back to the WVARS PCB * Using a USB serial convertor chip (either a FTDI or even the one built into the UNO) you can then upload code to Arduino chip. (Connect Rx and Tx as well as VCC and GND) {{:guides:image0.jpeg?600|}} ==== Install the WVAR code ==== * First install the MPL3115A2 Adafruit Library * Go to //Sketch// -> //Include Library// -> //Manage Libraries// * Search for MPL3115A2 and install the Adafruit library * ===== Links ===== * [[https://www.instructables.com/id/Atmega-Standalone-Running-without-crystal-oscillat/]]