Search results

  1. J

    handling data recieved

    Hi All I have knocked together a £3 ardiuno UNO on a bread board and sending 2 packets of data from a 28x2 to it. The uno is doing a bit of floating maths then sending back the result after converting it into intreger for the picaxe to deal with. Have knocked up a simple test code for the picaxe...
  2. J

    Is timeout in effect a pause

    Hi All In the serin command it says the following # The M2, X1 and X2 parts can take an optional timeout value and address at the start of the command. The timeout value, set in milliseconds, is the length of time the serin command will wait for a serial command to be detected. After the...
  3. J

    macro with lables

    Hi All Had another read of Hippys excillent work on explainig #macros and there use. Noticed using multiple lables in the macro but could not fathom out how to send serrxd info in the simulator so I had a think and came up with the following using 2 difrent lables 2 difrent variable and the...
  4. J

    DRF1276DM with HTU21D-F breakout board

    Hi All Have being having a play around with the drf1276dm and the adafruit htu21d-f breakout board to create a remote connection between 2- 28x2 The code for the htu21d is a rework of Phil Hornsbys htu21d demo.bas on the remote unit. The only problem I encounted with the drf1276dm was with the...
  5. J

    will #macro cause stack probs

    Hi All Working on the following code for a remote sensor unit link up to confirm 1 if the data between the two units is being sent correctly and 2 the sensors on the remote are working correctly. I have as the following code will show used a number selection to inact the sub routines in the...
  6. J

    serial terminal question

    Hi All using the following code to test a wireless link between 2 dorjo when i launch the terminal within editor I get strange values (72 or 85) the Hello is ok. Using the terminal set at 9600 N 8 1 when I use Cool Term the expected values are as expected linking the units with the "hello"...
  7. J

    hser recieving serial

    Hi All Have being playing around with the Dorji DRF1278DM with the intention of using it for a battery powered remote sensor unit I have the units talking to each other with the following using the 9600 braud rate high b.7 home: do serin A.0,T9600,b0 pause 450 sertxd(#b0," ") if...
  8. J

    $6C returns 1

    Hi All Just playing around with a bit of code to change the settings of Dorji DRF1278DM through the Picaxe For the pwer level and the CRC (CS) I found the HEX code in the Instructables LoRA 16 steps When I simulate it the HEX value $6C in the table reurns as 1 in variable b11 Is this correct...
  9. J

    simulating i2c

    Hi All I am trying to simulate the return actions of a 28X2 as a slave I am sendig 23,45,111 from the serial terminal simulator but I am recieving 95 and 104 respectivally not the 3 bytes I am expecting have altered the simulator settings to %xxxxxxx0 i2cfast, i2cbyte check box TH...
  10. J

    min max

    Hi All was having a look at phil hornsbeys code for setting up the htu21d and noticed that he uses the min limiting command (min, 1-1) do I take from this that the min ,0 can not be used but to obtain zero , 1-1 will deliver zero regards john
  11. J

    is this a disaster waiting to happen

    Hi All the following passes syintax but is it or will it confuse the chip later on select case b0 case=0 (do nothing left blank) case>0 high B.1 end select regards john
  12. J

    math problem

    Hi All is it possible with the picaxe to do the following eq 0.6108*exp(17.27*T/(T+237.3)) 1st part x/100*1st part result =2nd part - 1st part have tried removing the dec point then reaplying them but dont seem to be making any head way as the results from the first part are less than 1...
  13. J

    peek and poke timer

    Hi All was just having a play too see if I could make a simple on off timer with the minimum came up with using 1 variable and peek and poke it gives equal high low periods symbol cfon=8 symbol cfoff=9 in: dirsB=%11111111 b12=0 inti: poke cfon,0 poke cfoff,b12 main: do peek...
  14. J

    circuit consideration

    Hi All when connecting Tbaud rate equipment to the picaxe what on the hardwear side of things needs to be inplace for correct operation I ask this question as Westaust mentioned on a post lately some arangement for correct operation but I can not remember which post if its not too much...
  15. J

    up or down

    Hi All Just having a play to see if possible to select a pin on a variable changeable setting in relation to the results of a sensor. Without pre setting the pins to ie if X<1 then high else.........ect In effect finding its own balance ie set point 30 reading 31 make next pin high (all other...
  16. J

    just playing this morning

    Hi All Was just having a play this morning (trying to stick pin into scratchpad) and ended in doing the following not what I was after but thourght I wonder if so I did and found out it toggles the pins nicely dirsB=%11111111 pin: pinsB=%00111100 main: b0=0 do pinsB= dirsB-pinsB pause...
  17. J

    just a quick one

    Hi All when using hserin and out does the hi2c command interfer with the hser command ie hserout 0,(something or other) hi2cin 0, (read values) regards john
  18. J


    Hi All Having problems with the clearbit command within this code section the set and clear bit update setting and clearing dirsD as they should The problem is that outpinsD=dirsD is not occuring It does at start up but after being set outpinsD to %11110000 but once the outpinsD are set to 1 by...
  19. J

    Command not simulating

    Hi All Using the following command in PE6 is not simulating is there a setting other than the hsersetup needed for it to simulate ie in the options for the simulator #Picaxe 40x2 hi2csetup i2cmaster, %11010000, i2cslow_8, i2cbyte hi2csetup i2cslave, %11010000 hsersetup B9600_8, %001...
  20. J

    warnings when logging in

    Hi All As this is the primo tech forum I am getting a warning that this site potentally not secure when I log in Is this just hog wash my heart tells its safe my paranoia tells me get scared regards john