Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library...
-
Upload
gabriella-parsons -
Category
Documents
-
view
213 -
download
0
Transcript of Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library...
![Page 1: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/1.jpg)
Software Design Narrative
Team 1Hang Xie
![Page 2: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/2.jpg)
Utilization of integrated peripherals pwm, uart, i2c, atd
Computer vision library OpenCV or SimpleCV
Software Design Considerations
![Page 3: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/3.jpg)
MicroController part:PWM doneUART transmitting doneUART receive part not doneATD not doneI2C not done
Intelligent partUART doneSimple CV not done
Atom Motherboard
Software development status
![Page 4: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/4.jpg)
Register initializations requiredPWM UART I/O
OCxCON1 U1BRG TRISB OCxCON2 U1TXIPxOCxR U1STAOCxRS MODEPSS register
Software development status
![Page 5: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/5.jpg)
Flow chart for micro ( using raspberry pi)
![Page 6: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/6.jpg)
Flow chart for micro (Atom)
![Page 7: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/7.jpg)
State machine, polling loop
![Page 8: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/8.jpg)
Port names/addresses: Programming port: RP1, RP0,VSS,VDD,MCLR
PWM1: RP6 PWM2: RP7 PWM3: RP8 PWM4: RP9 PWM5: RP14 PWM6: RP29
UART_RX: RP11 UART_TX:RP12 I2C_SDA : RP10 I2C_SCL: RP17 I/O: RP3, RP4, RP30, RP16, RP23
Software Design Considerations
![Page 9: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/9.jpg)
Shareware sources pySerial : Serial(port,9600), flushInput(), read(), write() Raspbian SimpleCV OpenCVMy own modules pwm_init( ) pwm_con( ) uart_init( ) uart_get( ) uart_put( ) atd_init( ) Init_all( )
Software Design Narrative
![Page 10: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/10.jpg)
Hierarchical arrangement of the various code module
![Page 11: Team 1 Hang Xie. Utilization of integrated peripherals pwm, uart, i2c, atd Computer vision library OpenCV or SimpleCV.](https://reader036.fdocuments.in/reader036/viewer/2022081822/56649ea85503460f94bab992/html5/thumbnails/11.jpg)
QUESTIONS