Hello,
I have built a clock controlled by a PIC with 6 numitrons in the centre. Around them is a circle of 60LEDs which are programmed to display a number of different patterns. I am currently working on a pendulum pattern which uses the lower 30 LEDs. I have the software done, the challenge is this:
A pendulum has a period and an angular velocity that changes from 0 at the ends, and maximum in the center, following an equation. In the software I currently have 36 time slices (program steps, 0 to 35) in a half period of 107 clock cycles, for a total of 3852 cycles for one swing (left or right).
Looking at one swing, my challenge now is to divide the 36 program steps of 107 clock cycles such that the total number of clock cycles remains 3852, but the actual number of clock cycles per step are divided such as to approximate the equation of one pendulum swing (left or right).
Anyone willing to take a stab at this?
Bill van Dijk
Yes, I am with you so far. My challenge is to actually put that knowledge to work, and find the correct numbers.
Cheers, Bill
To view this discussion on the web, visit https://groups.google.com/d/msgid/neonixie-l/!%26!AAAAAAAAAAAYAAAAAAAAAPDddShx705MuX20yCpp0vvCgAAAEAAAAPGcVbt7i2JNk%2B0ud8ipvKsBAAAAAA%3D%3D%40zeelandnet.nl.
Hi Frank.
Yes, that is indeed about the way it works, I currently have a lookup table with 36 entries containing the value 0x6B, each time the PIC shifts the LEDs, it looks up the required step time, resulting in a nice linear pendulum. I did fiddle with a spreadsheet, but after 40+ years of not using any advanced math, I don't know how to set up a formula. I suppose my only other option is to just take a stab at it, add some here, subtract the same somewhere else and approximate something. I figured that there could be someone on this list who'd say: oh, that's easy, you just do..... or even better: here are your numbers...... :-)
Thanks, Bill.
To view this discussion on the web, visit https://groups.google.com/d/msgid/neonixie-l/66AE152FD6994EB98E6054A1225E6255%40FrankPC2012.
Hi Michel,
Thanks for that, that is actually going to help.
It is so difficult to explain a design in a few words, and I can see where my poor explanations confuse some. I don't know if it would help or not, but I'll attach the portion of the schematic for the LED section. The LEDs are multiplexed in an 8x8 fashion (the last group actually has only 4 LEDS). By using high output LEDS, the visual result is plenty bright. The columns are driven directly from the PIC outputs, the rows are selected by a counter, buffered by a ULN2803. Off to the left is the section with the numitrons which I left out for now. They are controlled via a serial data flow (bit-banged) from the PIC, a shift register, and a BCD decoder / latch for each numitron (you can't multiplex them, there would be no light output left). It is working great, and has currently 7 different display settings which can be selected with the same buttons used for time adjustment. The software is done in assembler, still my preferred language for these small PICs. Including the lookup tables I have used only 22% of its program memory space, so I keep looking for other things to do with it.
Thanks again for your and everyone else's contributions.
Bill.
From: neoni...@googlegroups.com [mailto:neoni...@googlegroups.com] On Behalf Of Michel van der Meij
Sent: Saturday, February 22, 2014 6:22 PM
To: neoni...@googlegroups.com
Subject: Re: [neonixie-l] Math wizzards....
Hi Bill,
I agree with David on this that it is a bit of a strange approach to realize your pendulum routine. The velocity on the outer left and right hand side is 0 so that would result in a very large timer value. However, if you say your numbers based on adding something * 50 gives you a reasonable result, you can use the "int" numbers from the table as attached. I based on on 100 rather than 50, in theory it should be 107 I reckon, but I thought that might cause problems with the rest of your interrupt routines, so 100 should be alright I think.
Michel
on Feb 23, 2014, Bill van Dijk <bvd...@xplornet.com> wrote:
To view this discussion on the web, visit https://groups.google.com/d/msgid/neonixie-l/004101cf3008%2404b92d70%240e2b8850%24%40com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "neonixie-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neonixie-l+...@googlegroups.com.
To post to this group, send an email to neoni...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/neonixie-l/389018803.290141.1393111299681.JavaMail.mail%40webmail17.
On Saturday, February 22, 2014 12:06:59 PM UTC-7, Bill v wrote:
Most of us still use tube
equipped appliances. I do not yet see a practical semiconductor replacement
for the magnetron in our microwave ovens!
--
You received this message because you are subscribed to the Google Groups "neonixie-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neonixie-l+...@googlegroups.com.
To post to this group, send an email to neoni...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/neonixie-l/3e2253a3-117e-4157-83fb-5fcccc6c1935%40googlegroups.com.
Very nice!
Now I have to work on some more patterns...... :-)
Bill
--
Definitely a fake. I've seen these before.
To view this discussion on the web, visit https://groups.google.com/d/msgid/neonixie-l/1BF3B7DB-2F6E-4882-8794-5EBDDE739352%40jsdesign.co.uk.
Isn't it pretty darn stupid for a scammer to email the group without instruction on sending money directly? And, to top it off know that hitting a reply simply goes back to the entire group?