Skip to content

Use PIC18F4520 to implement a simple bicycle direction indicator.

Notifications You must be signed in to change notification settings

cyj407/Direction-Indicator

Repository files navigation

Direction Indicator

A bicycle direction indicator controlled by the button or Android APP.
Besides, use a buzzer to play music when the indicator is on.

Circuit Diagram

Demo Photo


Environment Setting

  • MPLAB IDE v5(XC8 compiler)
  • Write in C language.

Library & API

SPI
signed char WriteSPI(unsigned char);

max7219
void init_MAX7219(void);
void MAX7219_1Unit(unsigned char , unsigned char);

dot_matrix
void Draw(unsigned short *, int);
void TurnRight(void);
void TurnLeft(void);
void Close(void);
void Stop(int)
void TurnOff()

sound
void delay_ms(unsigned int milliseconds);
void PWM1_Init(long desired_frequency);
int PWM_Max_Duty();
void PWM1_Duty(unsigned int duty);
void PWM1_Mode_On();
void PWM1_Start();
void PWM1_Stop();
void playTone();

hc-05
void HC_05_Init();
void receiveMsg();

uart
void USART_Init(long);
char USART_ReceiveChar(void);
char USART_ReceiveChar_RCREG(void);

dot_matrix
void External_Interrupt_Init();

About

Use PIC18F4520 to implement a simple bicycle direction indicator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published