Recent content by Speddo

  1. S

    Subs/macros for I2C displays

    Hello Ibenson. Sorry for the delay. My project was/is for the PicAxe to read a voltage and display to equivalent current on the LCD. Using a Hall Effect Sensor (HY10-P) which is to monitor a dc charging current - with excellent isolation 2.5kV! 0 to 10Amp input into the Hall Effect Sensor...
  2. S

    Subs/macros for I2C displays

    Hello Ibenson. Thanking you for your replay. After a few false starts, I have the #Include code up and running. All working quite well, although it is a little slow for the LCD to display the data, but fast enough for my purposes All is needed it to place the desired command on a line (with...
  3. S

    Subs/macros for I2C displays

    Thanks Ibenson. I really wanted to have some examples of how to invoke the various commands(?) in the #include file. i.e. InitD or some other syntax to invoke the initialize (or other) LCD command. My impression is that they behave just like an embedded command I will be setting up a 20M2...
  4. S

    Subs/macros for I2C displays

    Hello Rofi. Thank you for your code. Are you able to send the code for "Displaytest.bas" ? I am not fully experienced with the PicAxe code, with the "Displaytest.bas" code, I can experiment with it. What is the file suffix ".basinc"? Does this have something to do with the "#Include"...
  5. S

    Converting ADC Value to Voltage Readout On a Picaxe

    Hello Alan. Yes, I have learned a lot while building what appeared to be a simple project! I have been rewriting the code segments and following the results on the monitor. I also learned that variables in PicAxe are not as friendly as they could be. I can report, thanks to the forum, that I...
  6. S

    Converting ADC Value to Voltage Readout On a Picaxe

    Hi, Sorry, my ignorance and inexperience is showing. ADC pin will only read 2v max, so anything over 2v should read 2v -a lesson learned there, except mine reads 1.53v I have made further experiments with a 21k resistor in series with a 10k potentiometer off the common 5v rail, as per cct above...
  7. S

    Converting ADC Value to Voltage Readout On a Picaxe

    Hello Alan. Thank you for your comments. I take note of your comments on negative numbers I loaded up the above code into a 20M2 and the readadc10 results are all over the place. Connecting the pin to earth (0V) reads "00.00 Volts", but any positive voltage returns: 1.24 v instead of 1.68 1.53 v...
  8. S

    Converting ADC Value to Voltage Readout On a Picaxe

    Hi Alan. Thanks for your reply post. I downloaded the code and tried to run it in the simulation but error was reported on the [COLOR"#008000"] command . I commented out (effectively removed) that command ( [COLOR"#008000"] in the three places where it was used ) and simulation ran perfectly...
  9. S

    Converting ADC Value to Voltage Readout On a Picaxe

    This looks like what I need. But 2 questions so I can fully understand the code What does the command [COLOR"#008000"] mean or do? In the bintoasci line, there are two b0 in the sertxt line, there is only one b0 Why is this? Please pardon my ignorance. Thanks, Bill
  10. S

    I2C address

    Hi. I have had a learning curve with the PicAxe and i2c to LCD via a serial backpac on the LCD. The slave Address may be $27 or %00100111 , but the hi2cmaster command requires the slave address to terminate in a "command" bit, so the address becomes %011001110, or a 7 bit slave address +...
  11. S

    PicAXe to Serial Converter

    Hello Hippy. Thanks for the reply. I will try the address you have given, will be a few days to do so, been busy this end. Regards. Speddo
  12. S

    PicAXe to Serial Converter

    Thank you for your reply. I had to modify the program, as below PowerOnReset: Pause 2000 'Gosub VoltCheck PullUp %000110 High PWR Pause 1000 Commented out the subroutine to stop it running as it did not terminate and it ran excellent in the search for the i2c interface which returned...
  13. S

    PicAXe to Serial Converter

    Hi. Thank you for your reply. I loaded the code and it would not pass the simulation and reported a number of errors. My limited knowledge did not allow me to understand the errors reported. Thanks for again.
  14. S

    PicAXe to Serial Converter

    Hi, thanks for reply. I tried $C6 earlier and your suggestion of $26 just now, still no display on the LCD Seems like the slave address of the i2c is an enigma. The only reason I was playing around with 27h was that this was the slave address used by arduino. I will chase up the data sheet for...
  15. S

    PicAXe to Serial Converter

    I am trying to have an 08M2 PicAxe send a message to an LCD A 16x2 LCD module with a serial I2C 'piggyback' interface based on a PCF8574T serial to parallel converter. Documentation says the slave address is 27h. The PicAxe simulation will not recognize this address, Error code as follows "...
Top