Search results

  1. T

    Can't get code to recognize switch closure in motor gear train.

    Thanks again. I think I am on track now.
  2. T

    Can't get code to recognize switch closure in motor gear train.

    I copy/pasted your Do Loop into the clockwise subroutine (replacing everything that was there. It worked as you said it would. Making both B.2 and C.2 low allows the motor to coast to a stop, so I changed them both to be high, which brakes the motor (a function of the H-bridge chip I am using.)...
  3. T

    Can't get code to recognize switch closure in motor gear train.

    I am building a project that involves controlling a small DC gear motor with an SIRC remote via a 14M2 and an H-bridge. For the most part, I can get the code to do what I want, but I have one problem that I have not been able to solve. There is a set of dry contacts in the motor gear train that...
  4. T

    Trouble with PWMOUT

    @inglewoodpete As best I can tell, the problem was a poor solder joint on the wire connecting SW2 to pinC.3. After doing the sertxd testing you suggested, I tried that highly sophisticated test called "wiggling the wires" and found that I could move the C.3 wire one way and the problem...
  5. T

    Trouble with PWMOUT

    I cancelled an activity in order to perform the testing. I do see that the program restarts over and over while C.3 is high. No such restarts are taking place while C.1 or C.4 is high. I have a 1N4001 and .02uF cap across the motor terminals. I will do some research to see if I can find more info.
  6. T

    Trouble with PWMOUT

    Thanks. I will try that tonight or tomorrow and post the results.
  7. T

    Trouble with PWMOUT

    Further testing this morning has shown that the problem is connected to C.3, which will run the motor with a 999 duty cycle but not with 998 or anything less. C.1 and C.4 have not shown any problem with duty cycles down to 299 (or maybe lower.) Thanks for all input.
  8. T

    Trouble with PWMOUT

    Thanks for the response. Actually, the low speed works fine, as does the fast speed. It's the medium speed which won't turn the motor. I am truly perplexed. Ignore this post and read post number 4.
  9. T

    Trouble with PWMOUT

    Attached is the code and the schematic for my 12V motor controller. When I press the button on C.1, the motor runs fast, and when I press the button on C.4, the motor runs slowly, and when no buttons are pressed, the motor stops. That's all good, but when I press the button on C.3, the motor...
  10. T

    do while with two conditions

    I have not yet needed to write a do while command with two conditions until now. The format I am using seems correct, compiles, but doesn't seem to execute. do while b4 > b5 and b4 > b6 I am using symbols to represent storage byte variables b4, b5, and b6. The do loop consists of three...
  11. T

    Trouble exiting from a gosub

    I have a project that requires that I control a DC motor through an H-bridge based on the setting of five switches. The code seems to work well until it hits the gosub watch_sgs, but then hangs. I don't understand what is different, i.e., why the prior gosub calls work and this one doesn't...
  12. T

    ESP8266 WiFi serial module

    This thread seems to be about all things ESP, so hopefully my question won't be seen as hijacking. I have done quite a lot of experimenting with ESP8266 modules, especially the ESP-01. I want to add an external antenna to an ESP-01, and did so as seen in the photograph below. (I know that there...
  13. T

    serout, serin, sertxd help

    I am using an 08M2 and serout to send AT commands to another device. My hope is to be able to send an AT command from Pin C.4 to the external device, and then use serin on Pin C.2 to capture the OK response from the external device. I have sertxd setup to send the contents of the two registers...
  14. T

    PE 6.0.8.0 Restore Down size question

    Is it possible to control the Restore Down size of PE6? I notice that if I manually resize the restore down size, it stays that size for the remainder of that session, but after exiting and restarting PE6, it's back to the default size. At least, I would like to be able to set the default...
  15. T

    WinAXEpad "Test" function

    In using WinAXEpad, with a standard (not USB) serial cable and a standard (10k, 22k) programming circuit, I notice that there is a "Test" function. (Options, Port, Test, choose radio button) Through experimentation, I found that the result of my radio button choice affected the Serial In lead...
  16. T

    Manual 1, P. 11, 20X2 pinout, leg 5 typo?

    Actually, I thought I was being specific and fully explaining my question, but sometimes what we write in haste isn't perfectly clear, or sometimes comes "over oceans" as rude when that is not what we meant. The reason that I am "fairly sure that the 'C.5' not adjacent to leg 5 is a typo" is...
  17. T

    Manual 1, P. 11, 20X2 pinout, leg 5 typo?

    In Manual 1, p. 11, 20X2 pinout, leg 5, I am fairly sure that the "C.5" not adjacent to leg 5 is a typo. Is that correct, and should "pwm" be deleted as well? Thanks.
  18. T

    SerTXD stops?

    I have some code in which it seems that SerTXD stops (after several seconds) when Terminal is closed. Is that normal? If so, does that mean that Terminal signals back to the PICAXE with some sort of handshake while Terminal is running? Thanks.
  19. T

    FT_PROG and FT230XS/FT230XA

    Post deleted. Problem solved. I am trying to use FT_PROG to enable battery charger detection in the FT230XS, but cannot make it work. I check the "Battery Charge Enable" box in the hardware section of FT_PROG, but it seems to have no effect. Does anyone here have experience with this software...
  20. T

    Virus report in PE6 download.

    I just downloaded PICAXEEditor6.exe from PICAXE.com to put on my Vista laptop. When I tried to install it, Trend Antivirus intercepted and deleted the file, saying "This file contained malicious software, so it has been deleted for your protection." In the details, it identifies the threat as...
Top