Another chance for the Propeller to shine!
WBA Consulting
Posts: 2,934
in Propeller 1
I just saw this article on Hackaday about a binary clock running on 2 Arduino Nanos because the IR Remote usage was causing interrupt issues with the LED code. I immediately thought how the Propeller is the perfect solution to this problem. Also, rather than an MP3 board, just plant the audio file as WAV for the Propeller to play directly. Heck, there is even soft RTC SPIN code on the forums that is accurate very accurate, so use that too to eliminate the RTC.
https://hackaday.com/2018/07/02/driftwood-binary-clock-is-no-hollow-achievement/
https://hackaday.com/2018/07/02/driftwood-binary-clock-is-no-hollow-achievement/
Comments
(big plus if is battery operated)
I figured this would be a cakewalk on a Prop. I have all the parts to make this up, I may take a swing at it this weekend.
With all those LEDs, MCU current demands are not likely to be much of an issue
More of a challenge could be to get the Icc at 3V low enough, to allow some power outage carry over.
Maybe. For WS2812s you have to run at 80MHz. If one switched to the 2-wire APA102Cs then you could run a slower clock.
https://hackaday.com/2014/01/02/once-twice-three-times-a-nixie/
1, x, 0, 1,x, 0, 1, x, 0
x= insert the high/low bit here.
Using uart 7bit mode the start bit and stop bit would just fall in place naturally for a 9bit stream, but if uart 8bit mode is only available double 0 in the end is no harm
A HW SPI port can do similar HW based timing, usually to higher clk speeds.
That buys you a little bit of time, but you still need to avoid pauses larger than the reset/load time. Tough on an Ardunio with no interrupt priority.
Then you could use a mix of RCSLOW for waiting for IR/RTC pulse, and RCFAST for LED update.
RTC can calibrate the RCFAST, and you could use RCFAST as a thermister to track / correct heap clock crystals.
For simplicity of timing, at low powers, I like the look of a lowered voltage 74AHC1G4214 (SOT23-5) + 32kHz xtal. - or the older/larger HEF4060 / HEF4521 + 32kHz xtal ?
using 1/3 slices = 0.42µs per bit or 2.4Mbps
Yeah, I suspect on the 20 MHz RCFAST the 200ns instructions bit-bashing would work. That would make:
T0H=400ns
T1H=800ns
T0L=1000ns
T1L=600ns
Alternatively, use the Prop1's hardware pixel shifter. That can do a crafted serial output port. That'll breeze along on 20 MHz.