EOS_2016_Spring Team1 - Pinball battle

Click here to load reader

Embed Size (px)

Transcript of EOS_2016_Spring Team1 - Pinball battle

PINBALL BATTLE

PINBALL BATTLE

PXA270 LEDPXA270 75PXA270 LCDTimer (2)(5)

2

APP3

1234

Cellphone

Power

PXA270 BoardGame Box

Internet

DC MotorPhoto-resistance

8 V

8 V

Hardware

4PWM

Voltage Signal

Step Motor

Cellphone

4

5

DC

6

Threadsvoid *Step_motor(void *parm)void *Stick1_motor(void *parm)//1~4void *item_thread(void *parm)void *item_user1_countdown(void *parm)void *item_read(void *parm)void *Socket(void *parm)void *score_thread(void *parm)

THREAD void *Step_motor(void *parm)void *item_thread(void *parm)6~10void *item_read(void *parm)GPIOitem_user_countdownthreadvoid *score_thread(void *parm)5THREADS

THREAD void *item_user1_countdown(void *parm)//1~2item_readthreadvoid *Socket(void *parm)threadmotorvoid *Stick1_motor(void *parm)//1~44ThreadsSocketmotor

PXA-270SocketMultithreadsMutex protectSignalTimerGPIO DriverRead / WriteLCDLED7-Segment10

=>LED=>=>=>

11

=>=>=>=>PXA-270LEDPXA-2707-SegmentPXA-270LCD

12

DEMO