Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Sagebrush
Feb 26, 2012

huh. it literally is just three potentiometers in the same package. looks like they do it for redundancy, which makes sense if it's controlling a vehicle. with three of them you can vote on the outputs.

weird

Adbot
ADBOT LOVES YOU

go play outside Skyler
Nov 7, 2005


maybe the three encoders are slightly offset to give greater precision?

peepsalot
Apr 24, 2007

        PEEP THIS...
           BITCH!

I used to work on ECU tuning/reverse engineering, and I found it kind of interesting that the accelerator pedal on some of them actually logged two values, in opposite directions (like 0 to 5V, and 5 to 0V as pedal is depressed), maybe two opposing pots can help account for certain types of faults better than two completely same phase :shrug:

So I was thinking maybe it could be some kind of "3 phase" reading, but I'm not really sure how that makes sense with pots, since I don't think pots are made with sinusoidal "taper". Or like they could still be linear taper and be a 3 phase sawtooth? But then at least one or two of them would have to wrap around from hi to lo at some midpoint, which seems weird.

Or they could be 2 in phase with each other, and just one going the opposite direction. No idea, just rambling at this point... probably easier to just measure what they do than guess much more about it. Or try to request datasheet.

spankmeister
Jun 15, 2008






peepsalot posted:

I used to work on ECU tuning/reverse engineering, and I found it kind of interesting that the accelerator pedal on some of them actually logged two values, in opposite directions (like 0 to 5V, and 5 to 0V as pedal is depressed), maybe two opposing pots can help account for certain types of faults better than two completely same phase :shrug:

So I was thinking maybe it could be some kind of "3 phase" reading, but I'm not really sure how that makes sense with pots, since I don't think pots are made with sinusoidal "taper". Or like they could still be linear taper and be a 3 phase sawtooth? But then at least one or two of them would have to wrap around from hi to lo at some midpoint, which seems weird.

Or they could be 2 in phase with each other, and just one going the opposite direction. No idea, just rambling at this point... probably easier to just measure what they do than guess much more about it. Or try to request datasheet.

I think it's a safety issue.
Say there is a fault where both pots are shorted to the 5v reference (or 12v for that matter). Instead of the ECU thinking the driver just floored the pedal, the discrepancy is seen by the ECU.

Beve Stuscemi
Jun 6, 2001




Glorgnole posted:

ok i found the actual device. you probably already have this info since you have the actual hardware but i feel proud of my detective work.

Eletronic Mobility Controls AEVIT 2.0 L-Series gas and brake lever

the little notch thing on the lever is the same in this picture, and those two bolts below the encoder are there too


here's a pdf manual for the whole drive-by-wire system it's designed to interface with

peepsalot posted:

I would have expected some kind of encoder too, but looks like its actually just 3 potentiometers in a housing.

Took me forever to figure out what SS&C stood for, since there's some loving financial investment group making GBS threads up all the results, but check out this PDF:
http://www.mantech.co.za/datasheets/products/6015_spectrum.pdf

Ctrl-F for "6111" series and you can see the exploded view.

And more wild conjecture about the meaning of the rest of the model number 6111-2006-030:
- 20 means 20KOhm pots
- 06 maybe a shaft diameter designation?
- 030 means 30 degrees of rotation (in each direction?)

Also here's the product page but no additional info:
https://www.te.com/usa-en/product-6111-2006-030.html?q=6111-2006&source=header
maybe datasheet is request-able?

glorgnole, I have no idea how you figured it out but you nailed it! nice work!

thank you both, I ran into the same problem because of that financial group having way better seo

I’ll read the manuals for the details but if they really are just stacked pots, I should be able to feed that into an arduino and make it show up as a joystick in windows. I just have to figure out how to define the values for throttle/neutral/brake, but some experimentation should get me mostly there.

holy poo poo thank you again!

The Eyes Have It
Feb 10, 2008

Third Eye Sees All
...snookums
Neat. I'm going to guess that reading the pots is one thing but getting the right "feel" from the values/movement will end up the bigger fish to fry.

Proudly show him an early prototype that generates only fart noises.

Sagebrush
Feb 26, 2012

The Eyes Have It posted:

Proudly show him an early prototype that generates only fart noises.

only once the pitch has been mapped to the throttle

Beve Stuscemi
Jun 6, 2001




yeah I might have to try to map an acceleration curve to the throttle. the manual for the system even mentions that, so it’s probably not just linear

then, yeah I’ll probably have to make a separate curve to map the fart pitches to.

orly
Oct 2, 2005

did another doom inspired composition

https://www.youtube.com/watch?v=WG9M67-aj2c

Lutha Mahtin
Oct 10, 2010

Your brokebrain sin is absolved...go and shitpost no more!

current project status: im sprucing up our back yard. we're gonna have to have our wedding ceremony back there with like 10 people max all distanced properly from each other

aeiou
Jul 12, 2006

It's cold in here...
Just kidding! It's to
fool enemies..
I’ve been learning how to write C programs for the original Mac, but then as most of the docs are in Pascal I’ve been learning that too. Think Pascal is pretty cool and let’s you just write some QuickDraw code and have it appear in a window without having to mess with any of the setup stuff.



This is a very modified version of the Tiled Lines example from https://generativeartistry.com/tutorials/tiled-lines/ Also I found a great repository of PDFs of old Mac programming books at https://vintageapple.org/macprogramming/

Luigi Thirty
Apr 30, 2006

Emergency confection port.

quickdraw owns

Beve Stuscemi
Jun 6, 2001




https://i.imgur.com/sqBZLwA.mp4

I think I'm getting close on the sim racing throttle and brake controller for my friend! I've gotten it to the point where the arduino shows up in Windows as a gamepad (hence the two way axis for the throttle and the single axis for the brake, although in practice this shouldnt matter) and it reacts the way I would expect it to when I give it input

Weirdly, despite being designed to control a multi-ton steel box at highway speeds, the potentiometers are surprisingly sloppy in their zero readings. I wrote a serial monitor to get the raw pot values and I wound up having to write a deadzone into the software to account for the fact that when they return to zero, its never quite the same zero.

The actual module used in cars has to be using a combined deadzone and also comparing the outputs of the three pots to divine where the stick actually is

Stack Machine
Mar 6, 2016

I can see through time!
Fun Shoe
I swear I'll get back to playing with antideluvian macs soon too but recently I've been obsessed with this ill-advised piece of kit:



Its entire purpose is producing 180V for driving vacuum tube plates at approximately rectified-US-line-voltage from 12V input (e: using a separate 5V USB supply for the control electronics because why not gently caress everybody up with some weird USB poo poo?). The high voltage side is isolated from the input power brick which is ideally also isolated from the mains. It also has a little buck regulator for driving 6.3V filaments from the same input. It's all built around a single quad comparator IC, using one for an oscillator, one each for the high voltage and low voltage power supplies and one is tied off now but I think I'll use it as a current limit to protect the high voltage side. There are plenty of better ways to do this; plenty of all-in-one controller ICs, but my hope is for this to have some pedagogical value as well.

Power electronics is unforgiving. When poo poo goes awry the first indication is frequently crackling followed by the smell of smoke. This can deliver watts at 180V. I have not yet been shocked by it and work with one hand behind my back.

The custom proto board this is built on has its own story but I'll have to wait and share that if they're ever used for their original purpose.

Stack Machine fucked around with this message at 04:43 on May 20, 2020

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope
i made a script a few years ago that runs several png optimization programs in parallel, then chooses the smallest of the resulting files and feeds it back to all of the optimizers until the file stops becoming smaller. like really bruteforce that png.

anyway, turns out, there either have been some advancements in png optimizers, or i just somehow managed to choose 4 of the worst ones to use:

https://css-ig.net/png-tools-overview

i used advpng, advdef, OptiPNG and pngout, you can find them near the bottom of the "savings" table :smith:

anyway, i'm redoing the script as a java program to try out CompletableFuture and parallel processing. also i added pingo to the 4 listed above and shockingly so far the results have been: just use pingo lol

Agile Vector
May 21, 2007

scrum bored



thanks for sharing this! ive been using oxipng and thinking it was the best of the batch and now im gonna check out pingo too

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

Wheany posted:

anyway, i'm redoing the script as a java program to try out CompletableFuture and parallel processing. also i added pingo to the 4 listed above and shockingly so far the results have been: just use pingo lol

so far it seems that for "wallpaper like" images pingo always wins, but for icons some of the other tools manage to get a few more bytes squeezed off

BobHoward
Feb 13, 2012

The only thing white people deserve is a bullet to their empty skull

Wheany posted:

i made a script a few years ago that runs several png optimization programs in parallel, then chooses the smallest of the resulting files and feeds it back to all of the optimizers until the file stops becoming smaller. like really bruteforce that png.

how common was it to ever see any benefit from a second pass, seems like that is the classic case where it's most likely neutral or worse

Agile Vector
May 21, 2007

scrum bored



in something like imageoptim on macos would normally shave a few more % off with zopfli on a second pass

in that app itll run several different png optimization libraries in combinations and pick the best but i think the second pass helps partly due to a practical limit of how many times itll iterate overall and that itll keep a local log of the tests tried so it may be going further into those slow combinations

Lutha Mahtin
Oct 10, 2010

Your brokebrain sin is absolved...go and shitpost no more!

i enjoy gardening now

nobody-
Jun 4, 2000
Forum Veteran

Stack Machine posted:

I swear I'll get back to playing with antideluvian macs soon too but recently I've been obsessed with this ill-advised piece of kit:



Its entire purpose is producing 180V for driving vacuum tube plates at approximately rectified-US-line-voltage from 12V input (e: using a separate 5V USB supply for the control electronics because why not gently caress everybody up with some weird USB poo poo?). The high voltage side is isolated from the input power brick which is ideally also isolated from the mains. It also has a little buck regulator for driving 6.3V filaments from the same input. It's all built around a single quad comparator IC, using one for an oscillator, one each for the high voltage and low voltage power supplies and one is tied off now but I think I'll use it as a current limit to protect the high voltage side. There are plenty of better ways to do this; plenty of all-in-one controller ICs, but my hope is for this to have some pedagogical value as well.

Power electronics is unforgiving. When poo poo goes awry the first indication is frequently crackling followed by the smell of smoke. This can deliver watts at 180V. I have not yet been shocked by it and work with one hand behind my back.

The custom proto board this is built on has its own story but I'll have to wait and share that if they're ever used for their original purpose.

What kind of transformer is that and where did you get it? I’ve been playing around with driving an array of nixie bar graph tubes, but they need a little more current than the boost converter with cheap inductor power supplies I’ve experimented with so far.

Stack Machine
Mar 6, 2016

I can see through time!
Fun Shoe
It's hand-wound on an RM-8 pot core (that's the form factor. These come in a few different shapes and sizes.). If you want to get it from digi-key or whatever, you go to the magnetics section and buy a "bobbin", the actual plastic bit with the pins, a ferrite core and some clips to hold the core halves together and then wind some magnet wire on the bobbin, then stick the core in when it's wound. Don't worry if you don't get the right clips because you can always tape or superglue the core pieces together. These are ferrite cores only useful for switching power supplies btw. If you want to run something straight off the mains down at 50Hz or 60Hz you'll need to buy some fancy laminated iron core thing.

There are a few different circuit topologies for power supplies using these kinds of ferrite core transformers, and old EE neckbeards will chastise you for calling the ones with gapped cores like this one "transformers" instead of "coupled inductors" despite the fact that nobody who grew up in the CRT era ever heard of a TV "flyback inductor". If you want to discuss switching regulators we should probably take it over to the learning electronics thread but I'll drop a link here to a guy who's done what you're describing for nixie tubes:
https://www.dos4ever.com/flyback/flyback.html

It probably goes without saying but please be careful. Flyback converters can crank out moderate power at lethal voltages. This is an idiot spare time project for more than one reason.

Wheany
Mar 17, 2006

Spinyahahahahahahahahahahahaha!

Doctor Rope

BobHoward posted:

how common was it to ever see any benefit from a second pass, seems like that is the classic case where it's most likely neutral or worse

not very common at all. but every now and then a second pass helps a little bit and even more rarely a third pass also helps.

anyway, i optimized a about 10k png files with pingo and then compared the results to the original file with imagemagick and... there was 0 difference between the original and optimized files (as expected, but pingo's web page warns that you should make backups, so i did).

using pingo -sa <filename> (-sa being the "brute force" lossless optimization), the time taken was about 6 seconds for 1080p files on a i7-6700, which is very reasonable imo.

also the space saved was about 40% compared to irfanview's lowest png compression, 20% for files that were probably saved at the default level.

Wheany fucked around with this message at 21:35 on May 24, 2020

BobHoward
Feb 13, 2012

The only thing white people deserve is a bullet to their empty skull

Wheany posted:

not very common at all. but every now and then a second pass helps a little bit and even more rarely a third pass also helps.

this was puzzling me so i looked poo poo up and (i think) am more enlightened now. i was aware that png used some kind of LZW adjacent dictionary compression so it didn't make sense that recompression could ever help (recompressing the output of one dictionary encoder with another rarely does anything helpful)

apparently prior to dictionary compression, png goes through an encoding step which transforms raw image data into delta coded, since that results in datasets much more suited to dictionary compression. it's sort of like a more flexible / generalized notion of run length encoding, as far as i can tell.

since there's a bunch of different encoding options in this first phase and the choices made can produce very different compression ratios after dictionary encoding, analyzing the image and making better delta coding choices must be the space where png optimizers do their thing

idk why an optimizer would do better or worse based on the encoding of the input image though. it should be losslessly extracting pixel values from the original and then running its implementation of an encoder on the fully uncompressed dataset

Spatial
Nov 15, 2007

a key factor is that the choice of data encoding is made per row of the image. it's really slow to try all permutations so normal tools often use a heuristic. some just use a fixed encoding choice for all rows, usually paeth since it results in the best average compression rate.

good old DEFLATE is used for compression which has an effort setting of 0-9. saving PNGs is very slow even now so lots of tools compromise on that especially older ones, which is another avenue for improvement.

i've written a parallel PNG encoder before that massively speeds up encoding because i needed to deal with very large images. it compromises compression rate by <1% as a tradeoff because it has to split the data into multiple DEFLATE streams. i don't know how common this is

then there's a bunch of redundant headers tools can add. that probably only matters for tiny images.

go play outside Skyler
Nov 7, 2005


gently caress yeah, i posted some game on newgrounds. if anyone was there during its golden years, this should throw you back
https://www.newgrounds.com/portal/view/756186


it's a portal simulator where you play as the last member of the lock legion, trying to revive it and take over the world. it's basically cookie clicker meets plage inc meets newgrounds.

it generates fun names automatically and has a pretty accurate portal model in it.

i made it all in react, and i'm loving glad i did. this type of game definitely is a good fit for that.

spankmeister
Jun 15, 2008






God drat that does take me back. I had completely forgotten about the whole locks thing. Like wasn't there a strawberry lock or something dumb like that haha

go play outside Skyler
Nov 7, 2005


spankmeister posted:

God drat that does take me back. I had completely forgotten about the whole locks thing. Like wasn't there a strawberry lock or something dumb like that haha

yes it was absolutely dumb and I was a part of it. ran the website for the lock legion back in the day and all. we were a spin-off from the clock crew, and actually for a while briefly surpassed them in productivity

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
lol rad

go play outside Skyler
Nov 7, 2005


i'm thinking right now, this game engine is universal enough that i could convert this game to a Goon Gobbler type of thing, where instead of the NG portal you have the sa forums. with auto-generated thread titles and trying to get as many goons possible.

yay/nay?

Beve Stuscemi
Jun 6, 2001




:yay:

Trig Discipline
Jun 3, 2008

Please leave the room if you think this might offend you.
Grimey Drawer
you need a random event where you lose another vertebra once every few years and have to figure out how to fund a new one via patreon

haveblue
Aug 15, 2005



Toilet Rascal
a wide array of bone craftspeople, bone factories, bone mines, bone synthesizers

Luigi Thirty
Apr 30, 2006

Emergency confection port.

and maybe a coconut nintendo

Trig Discipline
Jun 3, 2008

Please leave the room if you think this might offend you.
Grimey Drawer
i got adobe creative suite for work and i've been learning what some of the animation tools do, just for the heck of it

today i made a cardboard dude and made him sing one of my songs

https://www.youtube.com/watch?v=wqYcfd814e0

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
its wonderful

orly
Oct 2, 2005

did another DOOM inspired composition, arranged the fft height field in polar coords

https://www.youtube.com/watch?v=mqmW32KV97s

PIZZA.BAT
Nov 12, 2016


:cheers:


orly posted:

did another DOOM inspired composition, arranged the fft height field in polar coords

https://www.youtube.com/watch?v=mqmW32KV97s

neat

orly
Oct 2, 2005


thx :) Did another recently with sheet music viz:

https://www.youtube.com/watch?v=3rUEawH_g4Q

Adbot
ADBOT LOVES YOU

N.Z.'s Champion
Jun 8, 2003

Yam Slacker
i've been making a web template converter

https://springload.github.io/metacomponent/

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply