Search results

  1. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    Code is working better. Approximately 100 RPM at full speed on the right turn. Nicely proportional, too! How to change the RPM to say200? Not a big deal but the neutral point is bouncing off and on. Left turn is 50% slower then right turn. When the control lever springs back to neutral, I'd like...
  2. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    Seems to be working however, the motor turns VERY slow in both directions. Also a high frequency hum from the motor.
  3. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    Thanks, erco. I will try it and report back tomorrow.
  4. Gramps

    Editor locking up during simulation

    Yes it works at 100................
  5. Gramps

    Editor locking up during simulation

    #simspeed 100 do b0 = b0 + 1 b1 = b1 + 1 b2 = b2 + 1 loop No, it crashed the editor......
  6. Gramps

    Editor locking up during simulation

    Had another incident here today. Running the simulator and could not get it to stop. Ran avast to see if i had a virus but the system is clean. Had to close the Editor and restarted. Now working ok. We never had a problem till we "upgraded" to Windows 11. not sure what #simspeed is.
  7. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    IT'S WORKING!!!!!! ;C.2 connects to PWM pin on MD20A ;C.3 connects to signel from the reciever ;C.4 connects to direction pin on MD20A ;pwmduty is 0 to 1023 #picaxe 28X2 #no_data #no_table #terminal 9600 init: pwmout C.2,100,150 ; start pwm main: pulsin C.3,1,w1 ; record a pulse on...
  8. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    Got it! Thank you!
  9. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    Why doesn't the Editor pop up the serial terminal when the code runs? Opened it manually and changed the baud rate to 9600 to get real results but it works! 'USING PLUSIN TO READ THE RC RECIEVER #picaxe 28X2 #no_data #no_table Symbol PULSIN_RC = C.3 ;Read RC signel Symbol valuePulsin = w1 main...
  10. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    My apologies Alan, i started this thread Oct 16, but by the time i got to post #11 i went from left to right to forward and reverse! But it is left to right as originally posted. Correct. Was trying it both ways but forgot to comment them out.
  11. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    The results of my iron clad logic are "it doesn't work" Somehow I have not connected the pulsin to the pwmout command. w2 is stuck on 432 and b4 reads 176 but they do not move when i change the pulsin #. ;C.2 connects to PWM pin on MD20A ;C.3 connects to signel from the reciever ;C.4 connects...
  12. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    Erco wrote this sweet short code years ago. Looks like my work is done. Just replace the readadc command with pulsein and do the math to make it work! erco's Test circuit for the DC Motor Driver MD20A ;B.5 goes to center wiper on speed control pot ;C.4 connects to direction pin on MD20A ;C.2...
  13. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    Update Sorry about my rambling. Here's where we are ... In post #9 we were able to read the signal from the RC receiver with the pulsin command and have some usable numbers. Here are the results Throttle forward extreem w1=274, b2=18 Throttle off center w1=304, b2=48 Throttle reverse...
  14. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    #picaxe 28X2 #no_data #no_table main: pulsin C.3,1,w1 ; record the length of a pulse on C.3 into w1 debug ; report the result goto main ; and repeat ;results ;left extreem w1=274, b2=18 ;center point w1=304, b2=48 ;right extreem w1=324,b2=68 [ /code]
  15. Gramps

    New Ultrasonic Sensor Board

    erco, love it! I must find a place to use this thing!
  16. Gramps

    RC PWM to drive a Cytron MD20A motor controller

    Finally back to work on this project! The RC receiver has three connections positive, signal, and ground. The RC signal would go to the pulsein pin. Correct? And the ground would go to ground on the chip. Correct? Is that all I need to get pulsein to read a signal? I don't want to see any magic...
  17. Gramps

    Rail voltage

    Ah yes! When The magic smoke appears!
  18. Gramps

    Rail voltage

    Found my error. A nearly dead battery in the voltmeter was giving me a false reading.
  19. Gramps

    Rail voltage

    Poking around this morning I found the rail voltage on the breadboard is 7 volts!!!! What is the maximum Supply voltage for these chips?
  20. Gramps

    Editor locking up during simulation

    Just a quick update. Have not had one more bit of trouble with PE6 on Windows 11.
Top