Based on the links provided for the week, accomplish the following tasks:
1. (50pts) Connect a buzzer (from the Grove Starter Kit) to one of the DIO pins of the Intel Edison. Design a code such that the buzzer beeps for a finite time duration upon system startup, ie, everytime you switch on the Intel Edison the a beeping buzzer indicates startup.
2. (10pts) Email yourself the IP address of the Intel Edison at startup.
3. (40pts) Design a simple system, using a switch (the Grove button) & temperature sensor from the Starter Kit, such that every time you press the switch, it displays the temperature on your LCD screen.
Extra Credit (20pts):
For 1. above, implement the code & generate a startup service using only python (without using the shell script approach described in the links).
Notes:1. When closing shop, please shutdown your Edison, using the command below, before disconnecting to help prevent any Flash memory errors.
Further, keep backing up your code as much as possible. For users of Linux & Mac, you could use the scp command frequently to copy your code over the network.
Windows users could use this WinSCP software for a similar purpose. You may also try FileZilla. Please note that your Wifi & password need to be configured on your Edison for these to work, whether you use Windows, Linux or Unix.
2. When working with python codes, especially when using while(1) loops, try using the try:....except KeyboardInterrupt: structure for smoothly exiting your program.
try: while(True): . . . except KeyboardInterrupt: exit
You may want to explore some other try:... except.. cases here or see a full list of Exceptions and Errors to handle here.