Search results

  1. R

    Assigning a symbol to BPTR

    Can I assign a symbol to a bptr location ? As I am running out of variables I would like to change ( for instance ) Symbol MaxTemp= b24 to MaxTemp = ???? :confused:
  2. R

    5 volt picaxe to 3v module

    I am hoping to interface a picaxe 18m2 ( at 5 volts ), to a HMC 5883L module ( at 3.3 volts ), using I2C for communication. Are there any " gotcha's " to look out for, or must both device run off the same voltage. If different supply voltages are OK, should I tie the I2C data and clock lines to...
  3. R

    Poking to RAM

    I am using a 18m2 and need to store values in RAM so that I can use the variables again. I would like to find an easier way to do this.. poke $60,b11: poke $61,b12: poke $62,b7: poke $63,b8 note the variables are not sequential. This will need to be done a number of times, each time to...
  4. R

    Resetting scratch pad

    i need to reset a number of values that were stored with the write command. Rather than go through a long write n,x sequence I thought the PTR and PTRINC would be the quick answer. I have used BPTR often but not PTR. After many failures I tried this from manual 2 - #picaxe20m2 ptr=1 ' reset...
  5. R

    Interrupts - some pointers please.

    I currently read data from a radio link to the 18m2 base. The base uses an RTC for real time display. Due to the blocking nature of serin, displayed time can be wrong, especially if received data is missed from the link. I am hoping to overcome this with an interrupt request. The 18m2 code is...
  6. R

    Dumping EEPROM data

    I suspect what I am trying is impossible. I am storing data in 24lc256 chips and want to dump the data via sertxd as the result of a button press. My initial thoughts were going to a dump_it subroutine on button press -> dump_it: #terminal 19200 setfreq m16 serout...
  7. R

    Interrupt sequence

    I understand that a return from an interrupt routine sends me back to the main program to the point where the interrupt occurred. I don't want that. I want to go back to the label main: Any ideas? I suspect the word "flag" may well feature in the answer somewhere.
  8. R

    Axe 133y

    Is there any problem connecting an axe 133y OLED display to the serial board if the board already has the contrast variable resistor installed? I am swapping out the old LCD for a new OLED. Just wondered if there are any Gotcha's
  9. R

    Terminating eeprom read early

    At this point, just proof of concept. I need to read strings of numbers from EEPROM I know where in the eeprom the string starts but will not know how long the string is. I wondered if terminating each string with a dummy character, say @, I could use this to jump out of the read routine...
  10. R

    Invalid Serout strings.

    I am attempting to serout a string to a speakjet chip. This program fails syntax. #picaxe18m2 do serout c.1,t2400,("\NO \OW \VV \FAST \EH \MM \EB \FAST \AXRR" ) pause 2000 loop Error message is Error: Unrecognised escaped char 0x4E after \ character. For \ type \\. I suspect is has...
  11. R

    Temperature Min / Max logging

    I have a unit that records minimum and maximum temperatures measured over a period since "last reset" The setup is :- 18m2 picaxe, LCD on pin b.3, DS18B20 sensor on pin b.7, reset button on pin c.0 All works well until the temperature goes below zero. Here is the code. '18m2 Min/Max with...
  12. R

    Scaling eeprom index

    I am trying to create an ordinal display. I have no problem producing the digits 1 to 9 Eeprom data holds Jan to Dec and Mon to Sun and these are read and displayed correctly, and the ordinal held in data 60, ("stndrdth") The decimal number ( 1-9 ) is held in variable b16 copied to b17 Attempts...
  13. R

    Code failure

    I am attempting to run this code. 'Station Base developement ' 'Vers 1 @ 10/10/12 #picaxe20m2 '#No_Data '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' init: symbol LCD=b.6 symbol ANT=b.1 symbol ASK=b.2 'Conn to RX port symbol ANS=b.3 'Conn to TX...
  14. R

    Interrupt concept

    I want to select either of two display routines to feed a common display. I thought that using a button to toggle a "flag", and using that "flag" value to select which routine to use would be the route to go. However, I dont want to have to hold the button down whilst the whole program loops so...
  15. R

    Some observations on 433mHZ simplex link.

    Symbol Old = serout,b.7,n2400,("UUUUUUUU") ;) Symbol New = RFin of RFout ;) I have been using the Old system for some time with no apparent problem to transmit temperature and humidity from a mast unit to a base unit. Problems arose when I modified the program to record maximum and minimum...
  16. R

    serout / serin format

    This is a very silly question I don't doubt, and I suspect the answer is " Because it is! " Why, when transmitting data, do we put the qualifier AND variables within the brackets thus serout c.2,T600_4,($AA, $BB, $CC,b0,b1,b2,b3,b4,b5,b6) 'Output data and on receive we only put the qualifier...
  17. R

    Stepper motor attempt

    Reading this post by Boriz ..... ............ prompted me to buy the unit and try to understand stepper motors. There is also a good tutorial by Westy in one of the forum sections. The following code, based on...
  18. R

    AXE 133Y problems

    I have been using a 433MHz link for some time with no problems. Moving it to an enclosure with a dedicated AXE 133Y display caused a malfunction so I assumed I had broken something. In the end I loaded this code into the transmitter :- '18m2 '17/07/12 #picaxe18m2 b0=0 do b0=b0+1 gosub...
  19. R

    Scrolling OLED display

    I want to show two display screens of data on a 4x20 OLED display. The running of the two sub-routines is no problem within the main code. I thought it would be nice for the first screen to "scroll off" and the second to "scroll on". I had no success with scroll on, but this code gives a nice...
  20. R

    I2C with two picaxes

    The attached is an idea of using an 08m2 to write to an eeprom and a 18m2 to read from the eeprom. I have used multiple devices on an I2C bus before -> picaxe, RTC, eeprom, but never two picaxe chips. Is this possible and are there any pitfalls.