-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:lucashicks1/lambda-deco3801
- Loading branch information
Showing
29 changed files
with
1,143 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import requests | ||
|
||
headers = { | ||
'Content-Type': 'application/json', | ||
'Accept': 'application/json' | ||
} | ||
|
||
r = requests.post('http://127.0.0.1:8000/whiteboard/user_4', headers = headers, json={ | ||
"body": [ | ||
{ | ||
"day": "tuesday", | ||
"time_slot": 12, | ||
"data": "minecraft gaming" | ||
} | ||
] | ||
}) | ||
|
||
print(r.json()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Microcontroller Communications | ||
1. Connect the Seeduino Xiao to a serial port using provided USB-C to USB-A cable | ||
2. Double click the .bat file located in this directory | ||
3. The file will download all required python libraries, so please wait for it to finish | ||
4. The program will run on completion of installations |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Microcontroller | ||
|
||
## Microcontroller Circuitry | ||
### Required Components | ||
#### Physical Layout Components | ||
- 1 x Atmega 328P Microcontroller flashed with Arduino Uno Bootloader | ||
- 1 x 16MHz Crystal Oscillator | ||
- 1 x Seeeduino Xiao | ||
- 1 x Piezzo Buzzer | ||
- 4 x 5010G 180 degree Servo motor | ||
- 2 x 22pF ceramic capacitors, through hole | ||
- 1 x 1000uF electrolytic capacitor | ||
- 2 x Breadboards with dual power rails | ||
- 1 x 4 AA Battery holder, plastic | ||
- 1 x 2 Way PCB mount Screw terminals, 5mm Pitch | ||
|
||
#### Programming Components | ||
- 1 x Duinotech ISP Programmer for Arduino and AVR | ||
- 1 x Duinotech Arduino Compatible AVR ISP 10pin to 6pin Adaptor | ||
|
||
## Circuit Layout | ||
![image](Circuit_Layout.jpg) | ||
|
||
## Programming the microcontroller | ||
The Atmega328P microcontroller will already come flashed with code to run this project. However if you are interested in flashing the controller, follow the below steps. | ||
1. If you do not have the AVRDude or Zandig configuration files downloaded, follow the documentation instructions [here](https://www.jaycar.com.au/medias/sys_master/images/images/9963160993822/XC4627-manualMain.pdf) with any mentions to the software zip file being found [here](https://www.jaycar.com.au/duinotech-isp-programmer-for-arduino-and-avr/p/XC4627) | ||
2. Connect the ISP programmer to computer and board per the layout circuit above | ||
3. Open the atmega328p_lambda_mc.ino file in Arduino IDE | ||
4. Verify the code file | ||
5. Under the Sketch tab, click export compiled binary | ||
6. In the AVRDude GUI, select the atmega328p_lambda_mc folder as the directory and select the binary export file to upload | ||
7. Click the upload button and wait for the upload sequence to finish |
Oops, something went wrong.