Recent content by JSDL

  1. J

    Blockly with HC-SR04 and servo

    Hi everyone, I am trying to create a program for a robot which uses an HC-SR04 ultrasonic sensor and an SG90 servo. I've got the HC-SR04 reading values reliably after tweaking the timing and clock speed a bit (values are about 1.5 inches off but that can easily be compensated for using simple...
  2. J

    Catalex MP3 player

    Hi everyone, I am building a line follower using a pair of IR TX/RX modules from Ebay. The line following works fine, however, I have a question regarding the Catalex MP3 player. I can get the module working no problem by sending the appropriate HEX bytes, however, I want the robot to "speak"...
  3. J

    Code question

    Hi all, I am making an electronic dice project which uses a tilt sensor to trigger random numbers on a 3d printed dice with LED's. The program works pretty well, but when I tilt the dice, it is supposed to initiate a counted loop form 1 to 20 and display 20 random numbers before it settles on a...
  4. J

    Interfacing to APDS-9960

    Hi all, does anyone have any experience interfacing an APDS-9960 breakout board to a Picaxe for gesture sensing? I am reading the datasheet but am having some trouble understanding how to configure it. I am looking to use it as motion control for a simple robot. Any help would be appreciated...
  5. J

    X2 Background Receive

    I am trying to receive some test data from my phone via Bluetooth (sending 2 integers between 125 to 175 consecutively), and output to the terminal via sertxd. Would this be the proper way of receiving the 2 values from scratchpad back to back: setfreq m16 hsersetup b19200_16, %001 main...
  6. J

    Picaxe + AppInventor Orientation Sensor

    I changed the original AI2 code to look like this for the serial comms: For the math, the pitch/roll values from the phones orientation sensor generate a number from 90 <-> 0 <-> -90, however since Picaxe does not support negative numbers, whenever either pitch or roll fell less than 0 it...
  7. J

    Picaxe + AppInventor Orientation Sensor

    Hi all, I am trying to send some orientation sensor readings from a simple app created in AppInventor to a Picaxe 08M2 over an HC-06 BT->Serial module. The connection is made successfully, but I am not seeing the correct pitch/roll values. Here is the BASIC code: setfreq m32 symbol pitch=b0...
  8. J

    BASIC code for Aduino MAP function

    Hi everyone, I am trying to create a program that reads a POT value into a word variable, then maps it on a scale of 75 to 225 for use with a servo. I found the documentation on the Arduino MAP function which revealed the following: private long map(long x, long in_min, long in_max, long...
  9. J

    L9110S H-Bridge breakout board

    Hi all, I have a question regarding the breakout module found here: https://www.bananarobotics.com/shop/How-to-use-the-HG7881-(L9110)-Dual-Channel-Motor-Driver-Module I have followed the coding sample in the Arduino sketch and converted it to Picaxe BASIC, however, I do not seem to be getting...
  10. J

    implementing low power mode

    Hi all, I've just built an electronic dice project around a Picaxe 20M2 mcu which reads a piezo transducer using readadc, then generates a random number from 1 to 6 and subsequently lights an LED(s) when the piezo generates a value above a certain threshold. Everything works great. I need some...
  11. J

    Programming Question

    Hi all, I have created a simple program in Blockly to read from an IR sensor. I have attached a screenshot from Blockly, as well as the Picaxe Basic code generated. My question is why is line 6 added to the code (the logical AND with IRCommand)? What purpose does this serve other than masking...
  12. J

    Serial data capture question

    thanks for the great explanation, I get it now! One last question, when sending multiple characters via serial comms and capturing the data, how can you determine where the start and stop bits occur? For example, here I sent the string "AB" (using TRUE, non-inverted polarity) and this is what...
  13. J

    Serial data capture question

    Hi all, just learning to use a scope and I created a simulation with Picaxe VSM to decode serial data. I have created a simple program using "serout" to send the letter "Q" out pin C.1 on a Picaxe 08M2 in a continuous loop, then captured the data on a virtual scope. I have attached a...
  14. J

    Picaxe VSM on Windows Server 2008 R2

    Hi all, wondering if anyone has tried installing VSM on Windows Server 2008 R2? I am running the latest version (7.10 with all the parts updates). It installs perfectly fine under Server 2008 R2, problem is when I go to install the license key. It installs the key under the license manager...
  15. J

    Connecting two Picaxe chips directly

    Hi everyone, I have a question regarding a circuit in which I am connecting the output of one Picaxe to the input of another. I understand that it is recommended practice to place a series resistor between the input/output of the two chips in the event that the input accidentally gets...
Top