|
Did that one myself. I wrote the control software for a machine with three visible light red, green, and blue lasers, along with an IR laser. The red, green, and blue lasers were pretty safe, but the IR was not. There were interlocks on all of the doors that cut laser power if the doors were opened.
Also, as protection against the soft schmuck making a mistake, the s/w had to toggle a bit on a port once a second to maintain power to the entire machine.
Software Zen: delete this;
|
|
|
|
|
Waaayyyy back in the time, I had to bit bang a 1200 baud serial port while driving the pins and motors on a slip printer.
Managed this on a 6801/3/5 by using state machines stepped by a timer, or timers, interrupt(s).
Very accurate and easy to tweak.
Good luck.
"Time flies like an arrow. Fruit flies like a banana."
|
|
|
|
|
I wish i could use a timer like that, but the timing is too tight for this. It's gotta be clock cycle accurate.
You run into a similar problem on the old Nintendo since it didn't have a frame buffer and the CPU, while faster than the scan gun, still wasn't that fast.
So you had to cycle count to plot, following the scan gun top to bottom, left to right until you reached the end.
On a faster system you could use a timer for that.
To err is human. Fortune favors the monsters.
|
|
|
|
|
honey the codewitch wrote: It's gotta be clock cycle accurate I did that on a PIC microcontroller once. We needed a one-second signal and a 15-minute signal, and the only timing reference was the CPU clock. Lots of pre-calculated values, NOP 's and such, all in a single page of code. Lots of fun .
Software Zen: delete this;
|
|
|
|
|
This is kind of like that except I have to dynamically generate the code. It's because the line changes on a USB interface are so tightly timed, and just ... i don't know if there's another way to do it.
To err is human. Fortune favors the monsters.
|
|
|
|
|
My approach worked only because I knew the CPU clock frequency accurately and the project was a one-off.
Software Zen: delete this;
|
|
|
|
|
I used to play around with this in my deep dark past. Is indeed a dark art, and can be deeply pleasing.... 😉
|
|
|
|
|
honey the codewitch wrote: I still can't decide whether I enjoy this kind of thing or loathe it I predict you will enjoy creating it and getting it to work.
I also predict you will loathe it the first time it goes sproing.
Software Zen: delete this;
|
|
|
|
|
We have a member who has reached an amazing 385 questions: a Help Vampire par excellence!
I can only assume that we are supporting his entire employment as he doesn't seem to have learned much (if anything) over the years.
Can we split his salary between us, or would that be unfair?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
The stakes are high
|
|
|
|
|
GROAN
Software Zen: delete this;
|
|
|
|
|
Even more impressive, his first QA question was in December 2016. That's an average of 70 "do my work for me" questions per year, not counting any which have been closed.
I'm surprised he didn't take a day off yesterday to travel to Whitby[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I'd like to draw your attention to the post below about making friends, and the reaction I assigned to the post.
It counted my reaction twice and I think I'm the only member who has had his reaction recorded twice for one post.
What do I win?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
did not see any posts from you regarding "making friends", I did get one about jokes.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Richard Andrew x64 wrote: What do I win?
Not a lot...
Bugs and Suggestions[^]
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
What do I win.
Points. And what do points mean? ...
Paul Sanders.
Not that the story need be long, but it will take a long while to make it short - Henry David Thoreau
Some of my best work is in the undo buffer.
|
|
|
|
|
Paul Sanders (the other one) wrote: And what do points mean?
The one who dies with the most points wins?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Then we already have our winner.... I doubt anyone will come even close to @OriginalGriff... ever
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
But I'm not planning on dying any time soon!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I didn't say that... but we would need more than one life to get your score...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hah! You'd just have to apply yourself, like my (and probably your) mother always told me (you)!
Having a positive attitude helps: if you believe you can't do something, you are setting yourself up to fail before you get started. Belief in itself isn't sufficient to do anything useful, you need application as well - but a negative attitude makes you less willing to try.
Having said that, I never set out to "get the High Score", it just happened and I was as surprised as anybody else ...
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 342 5/6
🟨⬜🟨⬜⬜
⬜🟨🟩🟨⬜
⬜🟨🟩🟨🟨
🟩🟨🟩🟨⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
That first word is so important!
Wordle 342 2/6
🟩🟩⬜⬜🟩
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 342 4/6
🟨🟨⬛⬛⬛
🟨🟨⬛🟨⬛
⬛⬛🟩🟨🟨
🟩🟩🟩🟩🟩
|
|
|
|
|
Where's my crown?
Wordle 342 4/6*
⬛🟨⬛⬛🟨
🟨🟨⬛⬛⬛
🟩🟨🟩🟨⬛
🟩🟩🟩🟩🟩
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|