Recent content by johnlong

  1. J

    Anyone Used Nextion Displays?

    Hi have a look at my post #148 on your display create a hot spot over your barometer create a nextion variable and associate a value to the barometer touch event create 2 small hot spots one for plus one for minus then create a nextion timer variable set the en of the variable to 0 I have found...
  2. J

    Displays for 2019

    I agree with Ibenson if you design your own communication code with ascii it makes things much easier to debug later on. The other thing to deside is which you want to be the master and slave I always use the picaxe as the master and the nextion as the slave but with an interupt function with...
  3. J

    Displays for 2019

    Hi Have a look at the nextion displays you can off load a lot of the picaxes program use to them and they offer touch screen facility to a project. The older modles are resistive touch they have just released a 7 and 10 inch capacitive touch versions that can play videos on them via just simple...
  4. J

    Strange one

    Hi Ally Cat my deepest apologies in my defence I can only offer to much reading not enough consentration I am how ever getting good results as to the battery status with the 28x2 so hats off to you sir the only real problem I have at the moment is when the lithium batteries deplete they depleat...
  5. J

    Strange one

    Hi tech the image of the terminal is showing that the results from a sub routine of a previous code downloaded to the chip. prior to the above code being downloaded, is being displayed as well as the above newly loaded code snippet, some thing I have never encounted before. this was being due...
  6. J

    Strange one

    Hi Removed the comp hum and hum results by getting rid of the return and sticking a do loop in but I as I understand it a new down load over writes all data on the chip so obviously the programing even the blank programing of the 4 slots did not totaly over write the previous program on the...
  7. J

    Strange one

    Hi All was just having a play with Allycat code for reading a battery symbol CALVDD = 52429 ; 1024*1.024*1000/20 (DAC steps * Ref V / Resolution in mV) Vdd2dp: calibadc10 w1 ; Measure FVR (nominal 1.024 v) relative to Vdd (1024 steps) w2 = w1 / 2 + CALVDD ; Effectively...
  8. J

    flashing led

    Hi you mighy need the more adept user for that not a command I have looked into yet but have a look at page 172 of the manual 2 pwm it is used to run a motor at variable speeds so should be able to fade in and out just a quick search using fading out an led produced can i control the brightness...
  9. J

    flashing led

    Hi pfroment Welcome to the forum the cheepest chip is the 08M2 which will suit your needs your simplest code for it is #picaxe 08m2 do high C.2' turn the led on pause 1000'high for some time low C.2'turns it off pause 1000'low for some time loop just copy the above into the editor and simulate it
  10. J

    Anyone Used Nextion Displays?

    Hi depeet I am using the nextion as a slave to alter the values of the variable of the picaxe, which then uses those values as presets to determine actions to undertake determined by you the user. The nextion is simply used a slave to report and display the state of the picaxes variables...
  11. J

    Battery Voltage Scaling

    Hi Apologies GeorgeB for interfiering with your thread Problem sorted at the start of the battery read gosub put in FVRsetup 1024 on return from gosub FVRsetup off photo resistor reading ok ,i2c readings ok for refrance the picaxe is a 18F25K22 thanks all
  12. J

    Battery Voltage Scaling

    Hi Dont wish to high jack the thread just a quick question had a look at Allycats post#7 down loaded code there for use with lithium ion battery but unfortunatly it scrambled all the results from the phote ressistor,htu21d temp %rh sensor and the infer-red sensor look to the manual CALIBADC10 it...
  13. J

    Anyone Used Nextion Displays?

    Hi for securty to stop little or large fingers altering things I found an example on youtube by a gentleman called royal newbury and adapted it for use with the picaxe The following code is all held in the preinitalize event tx0.txt=tx0.txt-4 ref key2.val if(key2.val==0) {...
  14. J

    Anyone Used Nextion Displays?

    hi Being having a play with it myself have worked out how to alter multiple values of the page with only a + and - keys To do this I used the timer variable in conjunction with a variable. Each of the hotspot(day temp hum,alarm,ect) for the values to be set or changed is given a value, the...
  15. J

    Function serin & serout

    just another quick one you have b2 as lsb and b3 as msb I have always assumed the the word structure was w1 b2 most significant b3 least significant for the picaxe endness am I right in this assumption (so msb would be b2 lsb b3)
Top