Search results

  1. PhilHornby

    Install trouble PE6 on new windows 11

    See: this thread (esp. Post #7) There are also some generic suggestions for dealing with error 1310 here: https://www.makeuseof.com/error-1310-installation-issue-windows/
  2. PhilHornby

    Install trouble PE6 on new windows 11

    What's "the Syncfusion error"❓
  3. PhilHornby

    Rail voltage

    For the Picaxe 08M2 (from the 12F1840 datasheet)
  4. PhilHornby

    DPScope 1 users - Info for installing & use on Windows 11 (fresh/clean installs)

    How do you mean ❓ The "It Just Works" compatibility statement for Visual Basic 6.0 applications is still in place for Windows 11. I downloaded the DPscope software into a Windows 11 Virtual Machine and it installed and ran. It did complain that I didn't have the requisite hardware connected...
  5. PhilHornby

    Can ADC input be used to adjust an output timing cycle

    That is a very odd thing to remember :LOL:
  6. PhilHornby

    Can ADC input be used to adjust an output timing cycle

    10K pot. across the power supply rails, with the wiper connected to an ADC pin. The voltage will therefore vary between 0V and the +ve Rail. By default, READADC10 will give a result between 0 and 1023, depending on this voltage. In this example for the 08M2, using C1. as the input pin, the...
  7. PhilHornby

    PICAXE-28X2/AXE401 Serial Coms withe DRA818 U/V

    In the Arduino world, all the examples seem to use this library. I can see that it too sends "AT+DMOCONNECT\r\n", but it seems to accept any response as meaning "success". (My C++ isn't the best :(). Perhaps there is some intrinsic bug with the device, that everyone just ignores?... There's a...
  8. PhilHornby

    I don't know how to do this, please help me work it out.

    We missed the obvious: toggle does not work with a variable - only a pin :oops: (It just leaves the variable unchanged) Armed_state = Armed_state xor 1 has the desired effect of toggling it between 0 and 1.
  9. PhilHornby

    I don't know how to do this, please help me work it out.

    Just noticed... The logic in this code looks incorrect. Armed_status: ;PinC.1 if Armed_state = 0 then gosub armed if Armed_state = 1 then gosub disarmed return If Armed_state is 0, then it will call armed which will toggle it (i.e. set it to 1). So it will then call disarmed, which will...
  10. PhilHornby

    I don't know how to do this, please help me work it out.

    I tested the sample code I posted - with a real Picaxe 14M2 and a real switch. It does work, as described ... The Interrupt Service Routine cannot (sensibly) continue, until the condition that triggered it has 'gone away'. Otherwise, it would immediately retrigger when the return statement is...
  11. PhilHornby

    I don't know how to do this, please help me work it out.

    There seems to be an extraneous loop (and end) in the Final_Warning subroutine. They should be removed and just the return retained. As it stands, I'm not entirely sure what happens... The only way I can see it getting 'stuck' in Armed_Status, is in that Check_Busy routine - which would have to...
  12. PhilHornby

    I don't know how to do this, please help me work it out.

    At the very least:- Armed_status: ;PinC.1 SerTxd("Armed Status is Disarmed - sound 0004", CR, LF) SetFreq BAUD_FREQ Pause 10 SerOut TX, BAUD, ( $7E, $FF, $06, $0F, $00, $01, $04, $EF ) SerTxd(" ", CR, LF) gosub Check_Busy SetFreq MDEFAULT toggle Armed_state goto Begin ;***...
  13. PhilHornby

    I don't know how to do this, please help me work it out.

    1) Make sure there is a pull-down resistor on C.1 to GND. 2) In the Interrupt Service Routine, you have removed the line ; then fall through to here and re-enable interrupt before leaving and replaced it with Return, thus ensuring that it doesn't fall through and re-enable the interrupt...
  14. PhilHornby

    I don't know how to do this, please help me work it out.

    You could use an Interrupt with Pin C.1. The following skeleton code is triggered by C.1 going high. I would normally tend to trigger on C.1 going low (so I can use the pullup command and save a resistor). I leave that as 'an exercise for the student' :) #picaxe 14m2 gosub...
  15. PhilHornby

    Editor locking up during simulation

    If the problem persists (after a reboot), you can always remove Windows Updates - and they should get re-applied later. Or you can use System Restore to take the PC back to a known good point. I recently had cause to do this on my Windows 10 system, after an update broke all manner of things. It...
  16. PhilHornby

    Voltage changes program execution-How

    C1 - guesswork ;) and will have to be electrolytic, given its size. C2 is to filter high frequency glitches. Something I've wondered for 50+ years, is why you need two. Everyone knows the resulting capacitance is just the sum of the two, so the tiny one should make no difference! I assume it's...
  17. PhilHornby

    Voltage changes program execution-How

    Can't help with the cow ... the last one I had to deal with - blocking my path in the middle of Exmoor - responded only to my motorcycle being revved to 10,000rpm. Flashing my headlamp did nothing :) How about modifying the circuit, something like this :- Having the LEDs on the 'high' side...
  18. PhilHornby

    Very interesting Power measurement IC, calibrate using LUTs??

    To take it full circle, the "Sonoff POW" apparently uses the HLW8012
  19. PhilHornby

    Very interesting Power measurement IC, calibrate using LUTs??

    If you're reading the frequency o/p of the 8012 using count, doesn't adjusting the 'period' parameter let you manipulate the result in the way you want ❓ (count is another of those functions I've never actually used, so I may be misunderstanding the way it works :unsure: )
  20. PhilHornby

    Voltage changes program execution-How

    OK I tried a simple readadc c.4,Vin in a loop (with a one second pause.) The value returned was 78±1. This was consistent over a supply voltage range of 2.5V to 6V. Disconnecting R1 gave the expected value of 0 and disconnecting R2 gave 255). ("78" equates to the voltage at the divider...
Top