# Week 13: Network and Communications <a href="../index.html">Back to Home</a> This is not finished! Everything I do here will be contributing to my final project. The gist of the network and communications part of my final project is as follows: * There are two identical boards, each with a CR2032 3.3V button battery as the power source. The voltage is regulated by a regulator for denoising, after which is powers an RN4871 and an ATMega328p (I don't think ATtiny44 has enough storage space for this project). The ATMega controls an LED. * The ATMega is constantly telling the RN module on the same board to try and connect to the othe RN module by address. * The ATMega asks the RN to tell it whether it's connected, and if so, give the SRRI to the connected device as an indication of signal strength. Based on the signal strength, the ATMega sets the LED to glow at a certain intensity. <img src="images/bluetooth_schematic.JPG"/> Somehow, this is harder than I thought. Things to figure out: * How to program an ATMega with Arduino IDE? (C gives me way too much stress.) * How to communicate from ATMega to RN? I'm thinking of using mySerial.write("COMMAND"), where mySerial is an instance of the SoftwareSerial library and COMMAND is some RN-recognized command encoded in ASCII. * **Can** the ATMega constantly be asking the RN to connect? Maybe I need a button press to activate that command instead? * How to connect all these components in the most effective way?