Search found 502 matches

by FFMan
06 July 2021, 14:21 PM
Forum: ZX-24
Topic: Inputcapture resolution
Replies: 0
Views: 7362

Inputcapture resolution

Further to my last post, I'm investigating why I appear to be getting discrepancies between reported and measured rpm. So I have a scope hooked up the the car, and at approx 3000 i can measure the spark fire duration at 3.7ms and the gap between sparks as 17.2ms (its a 4 cycllinder,4 stroke with 2 c...
by FFMan
25 November 2020, 14:15 PM
Forum: ZX-24
Topic: Timer speeds
Replies: 3
Views: 9143

As usual Don you saw my problem before I did. This from your rmail seems spot on:- For the ATmega devices Register.TimerSpeed1=2 yields a timer frequncy of F_CPU/8 so the timer frequency is 1.8432MHz. This frequency isn't available on the ATxmega (which runs at 29.4912MHz) because F_CPU/16 would be ...
by FFMan
25 November 2020, 12:15 PM
Forum: ZX-24
Topic: Timer speeds
Replies: 3
Views: 9143

Timer speeds

Previously i used a zx24a to capture engine rpm using inputcapture and in testing i found i needed the following statement to get the scaling correct. register.timerspeed1= 2 I am not trying to do the same on a zx24x,= and i note the clock speed is double the zx24a the documentation lists TimerC0 as...
by FFMan
24 November 2020, 14:09 PM
Forum: ZX-24
Topic: Will a permanent 3.3v connection to ADC drain the battery
Replies: 3
Views: 7856

ah yes - i rather suspected that might happen also.

I think i need a DPDT switch, it's just fitting it in but I think i can do it.

thanks Don
by FFMan
24 November 2020, 13:05 PM
Forum: ZX-24
Topic: Will a permanent 3.3v connection to ADC drain the battery
Replies: 3
Views: 7856

Actually, i don't this will work as the voltage divider will create a drain to ground anyway.
by FFMan
24 November 2020, 12:50 PM
Forum: ZX-24
Topic: Will a permanent 3.3v connection to ADC drain the battery
Replies: 3
Views: 7856

Will a permanent 3.3v connection to ADC drain the battery

Like the title says, can i connect my regulated lipo output to an adc pin and have it not drain the battery at all when the ZX is not powered up. At the moment I have the adc pin connected to the input to the regulator which is always in safe range, however, i now want the option to power it from 12...
by FFMan
11 December 2019, 4:09 AM
Forum: ZBasic Language
Topic: Has anyone used esp8266 to control Hue lights
Replies: 3
Views: 6602

that is interesting and i'll read and digest. More Alexa focussed but i might do that later also. I found this which covers a lot. https://www.makeuseof.com/tag/control-philips-hue-lights-arduino-and-motion-sensor/ i could either convert the principals to zbasic on esp8266 using the TCPClient exampl...
by FFMan
11 December 2019, 2:09 AM
Forum: ZBasic Language
Topic: Has anyone used esp8266 to control Hue lights
Replies: 3
Views: 6602

Has anyone used esp8266 to control Hue lights

Should be straightforward enough as Hue bridge is a simple webserver and Hue is controlled via json commands.

Just wondered if anyone has done it ?
by FFMan
03 July 2019, 7:37 AM
Forum: ZBasic Language
Topic: Updating output pins at speed
Replies: 6
Views: 10058

it's a zx40n - i don't use the vm devices any more.

twice the speed is better - i'll see how it goes
by FFMan
03 July 2019, 1:42 AM
Forum: ZBasic Language
Topic: Updating output pins at speed
Replies: 6
Views: 10058

i moved to a zx40 so could address entire io port in 1 command and speed is better but borderline for what i want to achieve. i either need a tube with longer persistence or faster processor. I note the original kits where done on PICS, not sure what speed what they ran at but is the code lower leve...
by FFMan
30 June 2019, 14:50 PM
Forum: ZBasic Language
Topic: Updating output pins at speed
Replies: 6
Views: 10058

Updating output pins at speed

Pursuing my ongoing obsession with clock projects i decided to try and recreate an oscilloscope clock that was executed so well here http://www.dutchtronix.com/ScopeClockH3-1-Enhanced.htm I was intending to use a 328n but I note that there is not an entire output port of 8 pins available (to drive a...
by FFMan
29 May 2019, 8:55 AM
Forum: ZBasic for Generic Targets
Topic: ESP8266 crashes
Replies: 2
Views: 6333

I've given up on the esp8266 as a platform to run code on. Still useful as a wifi module but as a precaution i always implement the ability for a zbasic cpu to reset the esp8266 if it becomes unresponsive. The only matrix display clock project running on the esp8266 calls ResetProcessor at 3am and t...
by FFMan
03 May 2019, 6:19 AM
Forum: ZBasic for Generic Targets
Topic: ESP8266 crashes
Replies: 2
Views: 6333

ESP8266 crashes

I've made a couple of project on the esp8266 but the most recent polls a POP3 server every couple of minutes and displays appropriate message on a matrix display. The matrix display part i think is ok as it runs for days on end in a clock project, and polls an NTP server once every 24 hours The addi...
by FFMan
08 April 2019, 7:45 AM
Forum: ZBasic for Generic Targets
Topic: IO pins on esp8266
Replies: 6
Views: 8793

thanks don - got it working in the end
by FFMan
07 April 2019, 12:40 PM
Forum: ZBasic for Generic Targets
Topic: IO pins on esp8266
Replies: 6
Views: 8793

thanks - i'd missed that part.

is there a way to reference the adc. It doesn't appear to have a GPIOnn designation that i can see.

The zbasic documentation doesn't say getadc isn't implemented.