Search results

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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.
  9. 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.
  10. 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...
  11. 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...
  12. T

    PE6 Problem

    Win 7 AXE027 20M2 PE6 6.0.8.0 Open PE6 with AXE027 connected and circuit powered. Check PICAXE chip connected. OK. Download code. OK. Check PICAXE chip connected. Error: Can't open COM3 (which is where AXE027 is connected.) Try to download code. Error: Can't open COM3. Close PE6. Restart PE6...
  13. T

    If...then symbol definition

    The following code runs, but in order to make it compile, I had to change the symbol definition for p_button from C.3 to pinC.3. I presume that is because pin references in if...then statements must be in that format. Is there a workaround for that? Thanks. #picaxe 08m2 'Identify the PICAXE...
  14. T

    General Purpose Variables on M2 Chips

    If I am reading the documentation correctly (yes, I resort to that occasionally,) the 08M2, 14M2, 18M2, and 20M2 chips all have 14 word variables, 28 byte variables, and 32 bit variables. My (often faulty) memory is that the 14M2, 18M2, and 20M2 had more than the 08M2. What's the truth? Thanks.
  15. T

    Code for Lincoln's PICAXE book?

    I bought a copy of Lincoln's book: Programming and Customizing the PICAXE Microcontroller, 2E. On the rear cover, it says that the code is located at www.lincsoft.com, which is now dead. I have contacted the publisher and tried to contact the author, both to no avail. Does anyone have a source...
  16. T

    For...Next Loop Problem?

    The for...next loop compiles for an 08M2, but doesn't produce the results expected. It seems that the Sum = Sum + Adval isn't working. What am I doing wrong? Thanks. Symbol ADVal = W0 Symbol Sum = W1 main: ADVal = 0 Sum = 0 for ADVal = 1 to 8 readadc 4, ADVal Sum = Sum + ADVal next ADVal...
  17. T

    Yet another chicken coop door opener

    Attached is a schematic of my chicken coop door opener. I am reasonably satisfied with the circuit, and have built and tested a prototype. I have also written some very rudimentary PICAXE code. While it is functional with the hardware, it is very basic, and I would appreciate constructive...
  18. T

    sound vs. play volume

    I have breadboarded an LM386 amp connected to an 08M2. Using the sound command, the volume is loud enough, but using the play command, the sound is barely audible. What am I doing wrong? The output from the LM386 is going to a piezo if that matters.
  19. T

    Homebrew AXE133

    I have breadboarded the AXE133 circuit as shown on page 5 of AXE133-pmd v1.1, downloaded the AXE133 basic firmware from the PICAXE site, and programmed the 18M2, firmware version 2.B. Of course, a wiring error is possible, but I have checked it multiple times, and cannot find any errors. On...
  20. T

    I/O nomenclature

    In the code below, is there some logic to the apparent discrepancy between the nomenclature for I/Os in "if then" statements versus "irout" statements? I would like to understand the rationale rather than just remember which I/Os are handled each way. Thanks. ' IR Out Code Sample ' Infrared LED...
Top