|
enotnert posted:https://vine.co/v/h2AuPjel3qQ neat
|
![]() |
|
![]()
|
# ? May 30, 2023 06:47 |
|
in javascript, all variables are doubles or something. don't loving use a pow function to compute squares. x*x computes in one clock cycle but pow(x,2) probably takes like 6. maybe they check to see if the exponent has no fractional component, but i doubt it.
|
![]() |
|
i guess maybe if you're using javascript you're not too worried about counting flops
|
![]() |
|
Mathhole posted:i guess maybe if you're using javascript you're not too worried about counting flops counting all your projects would get pretty depressing.
|
![]() |
|
fidel sarcastro posted:counting all your projects would get pretty depressing. i just live vicariously. i haven't had a project of my own in like a year ![]()
|
![]() |
|
enotnert posted:Just got that book trig mentioned. coooool i've had that book sitting around for a long time, i'm jelly that you're actually getting into it
|
![]() |
|
see, this is why it's good to know a little something about analog electronics as well as digital stuff. i'm working on another little microcontroller project but it's for someone who won't want to deal with finicky lithium polymer batteries so i'm making it run on AAs. well the thing will stop running at 3.3v but can handle up to 6 just fine, so i figured for the longest life four nimh AAs will get me a range from about 5.6v to 4.0v as the battery discharges fully. i can't use a buck converter because i'd need at least 7v for the switching to be efficient so i'd basically need 6 batteries at least, and that's annoying cause most chargers only do four at a time. also size and weight and etc. so four batteries it is. except...this one rather timing-specific thing is spazzing out when i drive the uc above 5v. i think it's cause i'm using the internal oscillator and the frequency changes enough with that voltage to ruin the timing. so i can't do that. i could go down to three batteries but then i'm starting out at 4.2v which is getting close to the cutoff so that will really kill the battery life. buuut i could always just stick in a single diode with a 0.7v drop and hey presto our voltage source now ranges from 4.9v to 3.3v with no problems whatsoever.
|
![]() |
|
can't you just use a low drop out (LDO) voltage regulator? paired with some filtering calacitors, an LDO regulator will take input voltages of, like, down to 5.5V and output a steady 5V.
|
![]() |
|
sort of, yes, but most batteries aren't a constant voltage power supply![]() even at the lowest drain, they start out at 1.4v and quickly drop to 1.25-1.3, and hit ~1v by the time they're completely discharged. i'm anticipating an average draw of 2---400mA. if the ldo requires 5.5v, that's 1.375v per battery, which is going to happen after like 10% of the discharge curve and after that you're below the threshold for the ldo to operate properly. if it has threshold lockout then it will just stop working, which is lovely because you don't use your batteries and the thing will actually run fine down below 5v. if it doesn't, it effectively starts just cutting whatever the dropout is from the supply, so it behaves exactly the same as a diode with a 0.5v drop. since i'd be spending 90% of the time in that region it's better to just use a diode.
|
![]() |
|
if you can live with the weirdness that can come from an uneven power supply then OK. in the case of only being able to use 4 rechargeable AAs i'd probably just go with 3.3V parts and use a 3.3V LDO regulator instead, though. guess it depends on your project.
|
![]() |
|
Trig Discipline posted:coooool I also got another copy for a friend of mine, and it made him so happy. His car got robbed about 8 months back, and it was after he was having to pack up his graduate office and move on into the real world. He had a well worn copy of it, and it was stolen as well. His eyes just lit up :3
|
![]() |
|
hi dying thread i made a thing http://alexkindle.com/Home/okRobot2 it was an idiot spare time project welp thats all
|
![]() |
|
Bloody posted:hi dying thread u should let it do ur poasting
|
![]() |
|
spankmeister posted:u should let it do ur poasting yeah that's Coming Soon not automated posting because im pretty sure thats frowned upon & i would never break the sacred sarules
|
![]() |
|
working on a little random terrain/map generator. implementing perlin noise is making my head hurt
|
![]() |
|
honkwife got me an fpv quadcopter for xmas. despite being an established pilot i managed to stuff it into the wall on xmas day. so the youtubes will be delayed whilst i fixeth it
|
![]() |
|
honkopter
|
![]() |
|
Bloody posted:yeah that's Coming Soon have you seen HAL 219000's posts? because im pretty sure that's what ![]() that or it's my posting give me your answer do
|
![]() |
|
syscall girl posted:have you seen HAL 219000's posts? because im pretty sure that's what yes i am aware but i don't have my own hal 219000 and i want one ![]() unrelated http://alexkindle.com/Home/okRobot2?seed=1592576083 now there's permalinks
|
![]() |
|
Dr. Honked posted:honkwife got me an fpv quadcopter for xmas. despite being an established pilot i managed to stuff it into the wall on xmas day. so the youtubes will be delayed whilst i fixeth it its p easy to do this with quadrotors regardless of experience, yeah
|
![]() |
|
Learning 3D sculpting / modelling so I can make my own things in the 3D printer rather than just downloading from Thingiverse.![]() Not bad for my second attempt ![]()
|
![]() |
|
one of the most difficult aspects of okrobot was integrating a "share on facebook button" i am literally the worst web dev ever for having struggled with this
|
![]() |
|
i'd ask what idiot clicks on those facebook buttons anyway, but the answer would probably depress me
|
![]() |
|
Is it a Markov model or do you copy large chunks of text?
|
![]() |
|
Mathhole posted:Is it a Markov model or do you copy large chunks of text? A blend of second and first order markovs
|
![]() |
|
need a new electronics project
|
![]() |
|
poo poo posting detector
|
![]() |
|
Sagebrush posted:poo poo posting detector a light that just stays on isn't much of a project how's the bike?
|
![]() |
|
Sagebrush posted:poo poo posting detector it's been done already: http://forums.somethingawful.com/search.php?action=results&requestid=7559591
|
![]() |
|
Bloody posted:A blend of second and first order markovs next make a markov image generator using okcupid profiles pics to train the model.
|
![]() |
|
dur posted:it's been done already: http://forums.somethingawful.com/search.php?action=results&requestid=7559591 you have to copy the link location before you click the link, it does a meta refresh to a search results page and that request id expires quick so that link doesn't work for anyone else see like this http://forums.somethingawful.com/search.php?action=do_search_posthistory&userid=12709 jeez learn how to do a proper burn yospos
|
![]() |
|
Werthog 95 posted:need a new electronics project travelling spark gap, tesla coil, railgun, gauss gun, aluminium induction smelter more "electricity" than "electronics" projects, but~
|
![]() |
|
eh electronics is for nerds anyway
|
![]() |
|
Werthog 95 posted:need a new electronics project an nes that calculates statistically what words get used the most and then generates poo poo posts from them and says them on a tv with giant letters maybe
|
![]() |
|
or maybe a yospos robotic arm that continually flips you off via a webcam
|
![]() |
|
peepsalot posted:you have to copy the link location before you click the link, it does a meta refresh to a search results page and that request id expires quick so that link doesn't work for anyone else fuuuuuuuck
|
![]() |
|
coffeetable posted:travelling spark gap, tesla coil, railgun, gauss gun, aluminium induction smelter i was building a little tabletop rail gun for a while out of a bunch of disposable camera flash units that i got for free. assuming reasonable efficiency numbers it should have been able to shoot bbs about as fast as a cheap pellet gun (~150m/s) but with a big snap and flash of plasma and all that. i quit working on it after i exploded a few 14ga wires by accident and realized i was screwing around with enough energy to kill a herd of elephants still kinda want to go back to it, though. listening to the flyback whistle like iron man's pulse cannons as it was charging up the whole bank was super cool
|
![]() |
|
Sagebrush posted:i was building a little tabletop rail gun for a while out of a bunch of disposable camera flash units that i got for free. assuming reasonable efficiency numbers it should have been able to shoot bbs about as fast as a cheap pellet gun (~150m/s) but with a big snap and flash of plasma and all that. i quit working on it after i exploded a few 14ga wires by accident and realized i was screwing around with enough energy to kill a herd of elephants ![]()
|
![]() |
|
Hex dump implemented using only the bash scripting utilities that are included with Windows Git. Git doesn't come with od or hexdump. It comes with Perl but that would be cheating. I used awk only after exploring many alternatives using bash and/or sed.Bash code:
Gazpacho fucked around with this message at 08:39 on Dec 30, 2013 |
![]() |
|
![]()
|
# ? May 30, 2023 06:47 |
|
cistps: it just occurred to me that the game i'm making is basically a roguelike, but instead of generating dungeons with monsters and treasure, it generates mysteries with suspects and clues i still suck at graphics ![]()
|
![]() |