PIC24FJ256GB106またはPIC24FJ64GB002とBluetooth USBドングルを使ってモーターをコントロール 
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Common MPLAB X Nov 28, 2012
Include MPLAB X Nov 28, 2012
MotorControl .X MPLAB X Nov 28, 2012
USB MPLAB X Nov 28, 2012
arch MPLAB X Nov 28, 2012
lwbt Debug (型キャストとシフトの順番修正) Jan 21, 2013
lwip add file Feb 12, 2011
Delay.c MPLAB X Nov 28, 2012
Delay.h MPLAB X Nov 28, 2012
HardwareProfile.h MPLAB X Nov 28, 2012
README update Nov 28, 2012
bt_spp.c MPLAB X Nov 28, 2012
main.c MPLAB X Nov 28, 2012
usb_config.c add file Feb 12, 2011
usb_config.h add file Feb 12, 2011
user.h add file Feb 12, 2011

README

Target : PIC24FJ256GB106/PIC24FJ64GB002

Bluetooth Protocol Stack : lwalkera/lwBT - GitHub

Bluetooth Protocol : SPP

MotorDrivar : TB6612FNG

IDE : MPLAB X v1.51

Compiler : XC16 v1.10



pin assignment

PIC24FJ256GB106

CN1 18	RB7/RP7/AN7	U2TX	UART2 TX
CN1 19	RB8/RP8/AN8	U2RX	UART2 RX
CN2 19	RD0/RP11	OC 1	TB6612FNG PWMA
CN2 16	RD1/RP24	OC 2	TB6612FNG PWMB
CN2 7	RE0	OUTPUT	TB6612FNG AIN1
CN2 6	RE1	OUTPUT	TB6612FNG AIN2
CN2 5	RE2	OUTPUT	TB6612FNG BIN1
CN2 4	RE3	OUTPUT	TB6612FNG BIN2
CN2 3	RE4	OUTPUT	TB6612FNG STBY


PIC24FJ64GB002

16	RP7	U2TX	UART2 TX
17	RP8	U2RX	UART2 RX
25	RP14	OC 1	TB6612FNG PWMA
26	RP15	OC 2	TB6612FNG PWMB
2	RA0	OUTPUT	TB6612FNG AIN1
3	RA1	OUTPUT	TB6612FNG AIN2
9	RA2	OUTPUT	TB6612FNG BIN1
10	RA3	OUTPUT	TB6612FNG BIN2
12	RA4	OUTPUT	TB6612FNG STBY