Search results

  1. lbenson

    Controlling a large motor with a 28X2

    ATOM Matrix ESP32: https://m5stack.com/products/atom-matrix-esp32-development-kit I ordered a couple. The software which controls it in the video is not yet released--it's to be in the next release of Annex32 (Real Soon Now, tm).
  2. lbenson

    Controlling a large motor with a 28X2

    I haven't looked into the details, but perhaps this is what you need to control your arm:
  3. lbenson

    Controlling a large motor with a 28X2

    Looks good. Time to program a chip.
  4. lbenson

    Controlling a large motor with a 28X2

    What progress? The simulator is your friend--a few minutes there and you should be able to test it in real life.
  5. lbenson

    Controlling a large motor with a 28X2

    If you're talking about the code in post 37, how would you plan to map the ports? Symbol DESIRED_POT = 17 ; C.5 = ADC17 Symbol FEEDBACK_POT = 4 ; C.3 = ADC4 Symbol DIRECTION = C.4 Symbol MOTOR = C.2
  6. lbenson

    20M2 MQTT node with ESP8266 ESP-01 running Annex (and PCB)

    Right. Files in post 16 changed to reflect 3V3.
  7. lbenson

    20M2 MQTT node with ESP8266 ESP-01 running Annex (and PCB)

    I find the 3-pin headers (+, signal, -) very useful. For experimenting, many of the A******* sensor kit items can be fitted with dupont cables: https://www.ebay.com/itm/1set-37-in-1-Sensor-Module-Kit-Set-for-Raspberry-Pi-Arduino-MCU-Education/183415291895 I also like to have plenty of +V and 0V...
  8. lbenson

    20M2 MQTT node with ESP8266 ESP-01 running Annex (and PCB)

    I'm not using 4.5/5V. The 20M2 version I was powering from the 3V3 feeds of a 18650 charger/holder like this: https://www.ebay.com/itm/18650-Battery-Charge-Shield-Board-V3-USB-Port-Type-A-0-5A-For-Arduino-Cha-Nz/303562430896 For the 14M2 version I'm using a 2-cell AA battery holder. Started off...
  9. lbenson

    Help with COUNT Command

    Best always to post code to the forum, so many eyes can look at it. When posting code, to preserve formatting, put it between the forum tags "[ code]" and "[ /code]" (except omit the spaces). In simulating, some values which change rapidly in real life cannot be well simulated, so for certain...
  10. lbenson

    Help with COUNT Command

    In simulation, the COUNT target value takes the value given for the pin in the values pane of the simulation window. To easily test different values, put a break on the COUNT statement and alter the value for your pin, e.g., C.0.
  11. lbenson

    20M2 MQTT node with ESP8266 ESP-01 running Annex (and PCB)

    I must admit to two embarrassing mistakes regarding the 14M2 version--one masking the other. Haste makes waste. On the hardware side, I swapped Tx and Rx on the ESP-01, and on the software side I was toggling the LED in the picaxe program (as per my initial testing of the board without the...
  12. lbenson

    20M2 MQTT node with ESP8266 ESP-01 running Annex (and PCB)

    Here's a 14M2 PCB doing mqtt with an ESP-01: Eagle cad schematic and board (sch and brd files attached--remove ".txt" to use files in Eagle CAD--.brd file can be sent directly to Oshpark.com): Here's the picaxe code, set up as node C on the mqtt net (looking for serial in with a qualifier of...
  13. lbenson

    ADXL335-3-Axis-Analog-Output-Accelerometer

    Nunchuk is fairly easy with an adapter: https://picaxeforum.co.uk/threads/wii-nunchuk-as-input-for-picaxe.17800/
  14. lbenson

    ADXL335-3-Axis-Analog-Output-Accelerometer

    I don't exactly understand this question. What is the servo tracking--the maximum acceleration of the sensor in the down direction? This would seem unreproduceable with any consistancy. However, if the theoretical task is to map values in the range of 270-370 (say in w0) to a range of 75 to...
  15. lbenson

    non volatile memory

    Perhaps it would help to practice in the simulator. This code will allow you to enter an eeprom address to write to, and a value to write. In the simulator, make sure you are looking at the EEPROM tab in the Memory pane. #picaxe 08M2 pause 2000 do sertxd(cr,lf,"Enter address 0-255 of eeprom...
  16. lbenson

    Help from picaxe experts

    Welcome to the forum. Not sure I can answer your question, but here are some thoughts. First, the code can be shortened, since if pinC.3 doesn't have one value (0 or 1) then it must have the other, so this should do the same as the code you posted. #picaxe 08M2 setfreq m32 ;Takt intern 32Mhz...
  17. lbenson

    non volatile memory

    symbol eepromAdr=b4 ' your code to set b12 goes here eepromAdr=7 write eepromAdr, b12 read eepromAdr,b5 sertxd(#b5) (for whatever value of b12 you have set.) If you powercycle the chip, the same code, omitting the "write", should print the same value, which has been stored in non-volatile...
  18. lbenson

    20M2 MQTT node with ESP8266 ESP-01 running Annex (and PCB)

    Here's another node-red wrinkle for controlling the LED using the pushbutton. First add a MQTT-in node: This listens to topic "broadcast" and passes the message payload to a function node: The function node uses javascript code. In this case, the code checks that we actually have a button...
  19. lbenson

    20M2 MQTT node with ESP8266 ESP-01 running Annex (and PCB)

    Well, I figured out enough about node-red to configure it to turn on and off the LED on my MQTT-enabled PICAXE. Node-red is installed on the same pi-ZW as the Mosquitto MQTT broker, at 192.168.2.40 on my network. In a PC browser, I went to node-red at 192.168.2.40:1880, dragged two "inject"...
  20. lbenson

    Using voltage to trigger an input pin

    The recommended download circuit (22K in series, 10K to 0V) is designed to safely allow connection with up to "RS232" levels--plus or minus around 15 volts, so this arrangement will allow safe connection to PICAXE pins except for pinC.3 on 08M2, 14M2, and maybe 20M2 (these pins do not have an...
Top