Delay time is required and stpper would not move when the pulses are too fast. Each winding consume nearly 700mA and Under half stepping it is about 1400mA. I test with 7805 1A regulator. //stepper test void main() { OSCCON=0xff; //osc configuration for max speed of internal osc TRISA=0; for(;;) { // 8 steps for helf stepping // 4 steps for full stepping PORTA=0x0E; //1110 delay_ms(5); // PORTA=0x0C; //1100 ...
I coded for my own solar charging controller and it is now working well. This version does not detect solar output. Knowing only the appearing voltage at battery terminal. Coded by me, waagyi 'finished 676 solar charging controller 'mcu will sense the battery charging state and 'automatically turn off when the battery is fully charged. 'And check the charging state after full charge mode and connect 'the battery to solar automatically 'rc1 to rc4 for charging indicator 'ra0 for vtg sensing at battery terminal ' 'battery sensor decimal read out '10.8 2.7 553 '11.6 2.9 594 '12.4 3.1 635 '13.2 3.3 675 '14 3.5 717 'used registers 'TRISA 'TRISC 'PORTA 'PORTC 'ADCON0 'ADcon1 'ANSEL 'ADRESL 'ADRESH ...
Comments
Post a Comment