A small project of Programming PIC32 micro controller via MikroC
$10-30 USD
Đã hủy
Đã đăng vào hơn 6 năm trước
$10-30 USD
Thanh toán khi bàn giao
// Schematic and other necessary information about pic32 will be provided
a .
In this part, using 2 pushbutton switches for EN and DIR inputs, send an 8-bit pattern of 10001000 to the 8 LEDs, rotating its position by 1 each 1.0 seconds. When DIR=0 it rotates to the right, DIR=1 makes it rotate to the left. When EN=1, the pattern is displayed and rotates. When EN=0, it is not displayed and its position is “frozen”, so that it continues from the last position when EN=1 again.
b .
In this part, using 2 pushbutton switches to control the DC motor, cause the motor to spin at a constant velocity (determined by the digital value of the 8 slide switches, where 00000000 is 0 velocity, and 11111111 is max velocity) when MODE=0 and cause it to spin at variable velocity (following a triangle-wave increasing, then decreasing, then increasing… pattern, when MODE=1. Of course, the other pushbutton is the ON/OFF switch, which should function like a toggle switch, remembering its “position” until pushed and released again.