Author Topic: W-H-I-Y-L - boom shake-shake shake the-room.  (Read 3632553 times)

0 Members and 10 Guests are viewing this topic.

Offline Androgeos Exeunt

  • Captain Oblivious
  • 212
  • Prevents attraction.
    • Wordpress.com Blog
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
My blog

Quote: Tuesday, 3 October 2023 0133 UTC +8, #general
MP-Ryan
Oh you still believe in fairy tales like Santa, the Easter Bunny, and free market competition principles?

 

Offline Turambar

  • Determined to inflict his entire social circle on us
  • 210
  • You can't spell Manslaughter without laughter
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
I got a new phone.  I can finally post while pooping, like I always used to dream about
10:55:48   TurambarBlade: i've been selecting my generals based on how much i like their hats
10:55:55   HerraTohtori: me too!
10:56:01   HerraTohtori: :D

 

Offline watsisname

Re: W-H-I-Y-L It's over 1000!!!!! (pages)
I got a new phone.  I can finally post while pooping, like I always used to dream about

i love the future
In my world of sleepers, everything will be erased.
I'll be your religion, your only endless ideal.
Slowly we crawl in the dark.
Swallowed by the seductive night.

 

Offline FireSpawn

  • 29
  • Lives in GenDisc
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Watching on BBC 1
If you hit it and it bleeds, you can kill it. If you hit it and it doesn't bleed...You are obviously not hitting hard enough.

Greatest Pirate in all the Beach System.

Peace is a lie, there is only passion.
Through passion, I gain strength.
Through strength, I gain power.
Through power, I gain victory.
Through victory, my chains are broken.
The Force shall free me.

 

Offline Sololop

  • 28
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Off to Venezuela for a wedding tomorrow. Apparently the water in the city I'm going to isn't even drinkable. Being a spoiled 1st-world city slicker, I sense this will be lame.

  

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Off to Venezuela for a wedding tomorrow. Apparently the water in the city I'm going to isn't even drinkable. Being a spoiled 1st-world city slicker, I sense this will be lame.

If you can boil it and be able to see through it, your doing good.
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Mongoose

  • Rikki-Tikki-Tavi
  • Global Moderator
  • 212
  • This brain for rent.
    • Steam
    • Something
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Just gives you an excuse for more beer. :D

 
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
C-SPAN streams all of their content on their website.  Why did nobody tell me this?!

 

Offline Androgeos Exeunt

  • Captain Oblivious
  • 212
  • Prevents attraction.
    • Wordpress.com Blog
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
I was reading stuff on the Internet in the following subject order:

Duke Nukem Forever -> continuous obsolescence -> Daikatana -> Ion Storm -> Deus Ex -> FreeSpace 2
My blog

Quote: Tuesday, 3 October 2023 0133 UTC +8, #general
MP-Ryan
Oh you still believe in fairy tales like Santa, the Easter Bunny, and free market competition principles?

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
i fixed my display contrast issues, by switching the slow ass arduino calls faster with avr library direct register access and a lot of bit ops. but due to a bug somewhere in my code my serial protocol doesnt store the first digit correctly, and so this digit is always wrong. i improved the contrast by breaking out the output enable pin on the shift register (i had just tied it to ground, cause i didnt think it would be necessary to switch it off), allowing me to cut off all current to the leds at the shift register (before i was just voltage matching the pins, which may not be 100% perfectly matched, resulting in some current flow and hince ghosting, and carryover during multiplexing). its ok cause i had a spare pin on my target mcu anyway. im still scratching my head about the first digit though. its got to be a serial error or an error in one of my data conversion functions. what happens is you send the uart a command byte followed by arguments (one byte each), and different commands take a different number of arguments. the command im using is 0xFA, which is the command to write all digits as ascii. this command is expected to be followed by 10 ascii characters, which are converted to 7 segment character codes. if i send the command followed by a string of 2s for example it should display all 2s, but for some reason the first digit is being corrupted. probibly an off by one error in one of my loops.

i was going to simplify my serial protocol anyway (more of a code space issue than anything), and so it will be completely rewritten. hopefully that makes the bug go away. but its a bug i will have to work on later. im going to visit my sister for x amount of time, get some fishing in as well. needless to say i want all the bugs out before i cut boards. i also want it working on the target mcu. i think i just have to change a single #define but you never know, memory/storage is my primary concern. the target mcu (attiny2313) doesnt have much space at all, 2k program area (almost full) and a mere 128 bytes of ram. so thats the thing i will work on. also want to implement an i2c protocol, but i may have to choose one interface or the other, though the serial library has some bloat i could cull out by talking to those registers directly (the hardware is all there though).
« Last Edit: May 17, 2012, 01:22:15 pm by Nuke »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Are you sure the digit corruption is a software problem? You might've connected the 7-seg wrong...?
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
no, theres a memory location that contains the raw on off bits for each segment. its just a 10 element byte array. when i dump it to the terminal, the first character never matches the other 9. it should because i sent the same one for all 10. when i write to the first segment the same thing happens as when i write out to the second, the only difference is that another chip decides which one of the displays has power at the time. you iterate over the 10 entries in the display buffer, output its contents to the shift register, latch it, and enable the outputs. then you set one turn on one of the displays.

the hardware is just an led multiplexing circuit. the grounds for the displays are all wired in an 8 bit bus to a shift register, and when one of the pins is low, current is allowed to flow through that segment. if you were to power all 10 displays (you really shouldn't do that though) then they would all display the same digit. but because only one anode pin is connected to 5v at any given time, only one display is on. i just output a number to the shift register, turn the display on by powering its anode, turn it off again, and load the next number to the shift register, repeat until all 10 have been output. then the code turns everything off and sees if there is any input from the serial port. this all happens so fast that it looks like all displays are lit simultaneously.

switching the displays on is handled by 6 outputs, a 3-bit select and an on/off bit controls 8 of the 10 displays with a 3-8 line decoder, it is impossible for more than one of them to be on at the same time. however since i have 10 displays, i need 2 extra pins, these are connected directly, and i can turn them on or off at will. there are some mosfets that actually supply the current, as the logic cant source much current by itself, so these are what actually recieve the data. i have a function that takes a number n between 0 and 9, if its n>=0 and n<8, i enable the line decoder and output the 3 down its select lines, if n==8, i turn off the decoder and power one of the extra segments and if n==9 i power the other. i dont see any issues there. its a fairly basic conditional.

i suspect the serial protocol is flawed. its a convoluted mess. its probibly not putting the right bytes in the right place, or my terminal program is putting in bytes that i do not want betwen the command byte and the data. the serial interface is also for testing, i intend to use an i2c interface instead. so its not a big deal to just wait for the rewrite, if this is in fact where the problem lies. i did perform a hardware test, i swapped the drive wires for the first 2 displays, the result was that the second display was wrong and the first one was right. this confirms that everything downstream of the displays is working. i also inserted a lengthy delay to the loop so i could watch the drive order, and only one display was on at any given time and in the proper sequence. so thats working. it has to be a software problem.

i dont have time to work on it, i have a boat to catch in a couple hours and im still not packed.
« Last Edit: May 17, 2012, 03:33:01 pm by Nuke »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Aardwolf

  • 211
  • Posts: 16,384
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Bleh. Terrain LODs stuff has hit two dead ends in two days.

First, both of the schemes I considered---either averaging 2x2x2 regions of nodes, or just dropping every second node---turned out were fundamentally flawed, because nodes which weren't on the actual surface would contribute to the surface of the lower LOD... e.g. if I had a grassy hill, in a lower LOD the dirt inside the hill might be exposed :(

Second, I was like "I am going to make a shader that raytraces these voxel things!". Performance is like 3 fps, and that's a ludicrously stripped down version of what I was planning on doing with it. Versus a worst case of 18 fps normally.




Also nobody is talking to me on teh instant messages :(

 

Offline Pred the Penguin

  • 210
  • muahahaha...
    • EaWPR
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Off to Venezuela for a wedding tomorrow. Apparently the water in the city I'm going to isn't even drinkable. Being a spoiled 1st-world city slicker, I sense this will be lame.

If you can boil it and be able to see through it, your doing good.
There are some things you can't get out of water just by boiling it...

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Off to Venezuela for a wedding tomorrow. Apparently the water in the city I'm going to isn't even drinkable. Being a spoiled 1st-world city slicker, I sense this will be lame.

If you can boil it and be able to see through it, your doing good.
There are some things you can't get out of water just by boiling it...

Right! for those things you let the water sit for awhile and siphon off only the surface of the water. But you'd better check with your survival guides before quoting me on this. :P
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Pred the Penguin

  • 210
  • muahahaha...
    • EaWPR
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
I used to live in a place where you could build up a serious amount of not so fun chemicals if you only ever boiled water...

 
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
I used to live in a place where you could build up a serious amount of not so fun chemicals if you only ever boiled water...

...  Sounds like the tap water in Chicago, when I used to live up in that area.  Incidentally, dumping industrial runoff into the same lake from which you pump your drinking water probably isn't the most brilliant idea in the world.

 
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Distillation FTW.

It definitely requires patience, but my Dad and I built a water distiller out of an old coffee can, some copper tubing, and... now I can't remember if we used a small natural gas burner or if we used an electric heating element...  It wasn't for our own drinking water (distilled water actually tastes pretty bad) but I think it was for some other project or other.  Something he needed very clean water for.  Maybe a cooling loop.

You know, I remember being all ticked off at being "volunteered" to help Dad with all his wacked out projects while I was growing up.  He could never be bothered to just hire a repair-man for ANYthing, and many times it ran well past the point of costing us more money than it saved (not to mention huge swathes of my life I'd never get back).  But, in retrospect, some of those projects were actually pretty cool.  That distillation system was awesome.  Pretty sure it did use a burner.  I remember thinking, "Cool!  Part of that flame is blue!"
"…ignorance, while it checks the enthusiasm of the sensible, in no way restrains the fools…"
-Stanislaw Lem

 

Offline deathfun

  • 210
  • Hey man. Peace. *Car hits them* Frakking hippies
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Canadian water for the win
"No"

 

Offline FireSpawn

  • 29
  • Lives in GenDisc
Re: W-H-I-Y-L It's over 1000!!!!! (pages)
Canadian water for the win

And southeast London water. It is genuinely tasty.

On a completely unrelated note, I believe that I am a full blow Talimancer now. Is there some sort of pill or cream I can use to make the 'warm & fuzzies' go away?
If you hit it and it bleeds, you can kill it. If you hit it and it doesn't bleed...You are obviously not hitting hard enough.

Greatest Pirate in all the Beach System.

Peace is a lie, there is only passion.
Through passion, I gain strength.
Through strength, I gain power.
Through power, I gain victory.
Through victory, my chains are broken.
The Force shall free me.