Search results

  1. Rampz

    Switching issues

    MotorStalled: sertxd("Motor Stalled",13,10) stallfaultcount = stallfaultcount + 1 ' added write 0,WORD stallfaultcount ' <<<<<<<<<<<<<<< This stores the "stallfaultcount" in EEPROM location 0 SERTXD("motor stalled count = ",#stallfaultcount ,cr,lf) 'added low LED '//...
  2. Rampz

    Switching issues

    Yep that's great at 50 it takes me several attempts to understand.
  3. Rampz

    Switching issues

    Ok i hoped i could just put it before the "Main" code started such that it would do it right at the start after power up I suppose the other route would be to put code in the "Motorstalled" gosub, that when i am in the motor stalled position it set C5 to disconnect to allow the input to be used...
  4. Rampz

    Switching issues

    My thinking is that I will be in a disconnect position after my code runs, will a cycle of power reset it?
  5. Rampz

    Switching issues

    Oracacle Yes i did read you can do a hard reset like that, in my situation of how the programming will be used it will prove difficult to make that happen, will what i proposed work do you think? I need to make it fool proof so to speak, if i have a download window following power up it would be...
  6. Rampz

    Switching issues

    Hello again Through testing the program in the real world i have come against a problem, firstly i need an extra input so want to try and use C.5, i can see i need to use the "reconnect" and "disconnect" commands, so my thought was to put this before MAIN in my program, as follows to allow me a...
  7. Rampz

    Burn baby Burn with fake fire

    The orange background looks like 3D Lenticular material to help to give the moving effect, I have tried to use the same material in my own design of LED tubes several years ago as a better diffuser than frost material normally used. Great video, well laid out, waiting for the picaxe rebuild.
  8. Rampz

    Switching issues

    Hello Ibenson I had read about the limit, in my project it should only write to EEPROM when there is a stall situation which when the time is suitable adjusted may only happen a few times a year, the other situation that write to EEPROM is when there is a battery fail, which could happen when...
  9. Rampz

    Switching issues

    Project is basically complete but have been thinking regards calibration of the voltage measurement, i would think if i can input R1 resistance in ohms as a number and do the same for R2 and the voltage to the 08m2 in Mv i should be able to write something wher i can enter these values and have...
  10. Rampz

    Switching issues

    Since i was going trial and error i came to the conclusion that RAM and EEPROM shared the same memory numbers so where stallfaultcount is using Word 8 i used the numbers from its bytes b16 or b17 Only after viewing what you have done i have changed then to in this example 0 seems i was wrong as...
  11. Rampz

    Switching issues

    I will look into this I hadn't tried this scenario, Thank you Jack Burns
  12. Rampz

    Switching issues

    Code as it currently stands, one way or another completly works, maybe needs tidying around the voltage offset area, and a general tidy. I just tried making a few faults on each counter then powered down for 5 mins, powered back up waited few second and did Recall and led flashed as it should...
  13. Rampz

    Switching issues

    R1 actual value is 10.00k R2 actual value is 21.99K i did go and select resistors as close as possible to required, it would be great to be able to enter resistor values and Vdd and have a routine that ammends the displayed voltage, i guess its just ratios, but just where to begin, what i have...
  14. Rampz

    Switching issues

    Thank you Jack Burns yep i tried your edit and the general set up and ammeded code for both counters and yes awesome it works How do i go about saving the counter increments following faults to eeprom rather than just local, then playing back from eeprom followed by deleting eeprom memory...
  15. Rampz

    Switching issues

    Thank you Inglewoodpete I am trying all i can think of but struggling to alter my code to suit your recommendations
  16. Rampz

    Switching issues

    Memoryrecall: for W9 =1 to stallfaultcount high 0 pause 5000 low 0 pause 5000 next W9 pause 10000 for W11 =1 to LVDfaultcount high 0 pause 5000 low 0 pause 5000 next W11 stallfaultcount = 0 LVDfaultcount = 0 return Ok i have managed with much help to get both counters to count faults...
  17. Rampz

    Switching issues

    Next fun i thought to try and flash C0 the amount of times that "stallfaultcount" total in W8 I found some simple code that flashed a led 15 times as below main: if pin3=1 then gosub Blink5 end if goto main Blink5: for b3 =1 to 15 step 1 high 4 pause 150...
  18. Rampz

    Switching issues

    Thank you Ibenson and Jack Burns this part makes much more sense now and works, i will measure the 2 resistors and the supply rail it would be good to find a way to make the maths easyier it was a struggle and will be each time i build this, resistors being different etc Now with the program i...
  19. Rampz

    Switching issues

    MeasureBatteryVoltage: '// Measure average voltage over 10 readings. ADCavg = 0 'Initialise to 0 for b1 = 1 to AvgCount ReadADC10 C.2,ADCvalue ADCavg = ADCavg + ADCvalue next b1 ADCavg = ADCavg / AvgCount ' Convert ADC Value to...
  20. Rampz

    Switching issues

    Thank you Jack Burns its is a huge help such great work, its been and still is a massive learning curve, like i say i am a slow learner, i need to see it, understand it fully, then work out why it can't be anything else, then i can get my head around it a bit. Like indents, i could see it but...
Top