|
So sleepless http://www.thingiverse.com/thing:215558
|
# ? Dec 30, 2013 09:01 |
|
|
# ? Apr 28, 2024 07:15 |
|
https://thingiverse-production.s3.amazonaws.com/renders/f6/3e/c5/2e/2e/dogemix_preview_featured.jpg
|
# ? Dec 30, 2013 09:05 |
|
Sagebrush posted:listening to the flyback whistle like iron man's pulse cannons as it was charging up the whole bank was super cool love that sound, want to use it prominently in game i'm not currently working on #3 (started 2006) even though now people are just gonna hear it and go "oh it's that iron man sound"
|
# ? Dec 30, 2013 12:04 |
|
i'm setting up my new raspberry pi (thanks Sir DonkeyPunch!) and my usb wifi dongle needs external power. i could buy a good powered hub and call it a day, but when i start putting actual money into something like this it loses its fun, so i think i ought to make a power injector from garbage i have lying around. namely, a cheap-looking regular USB cable, and a reasonably quality USB extension cable basically I want to make this: but with a female A connector instead of the micro-B connector. i'm just not sure what i should do with the power of the upstream data connector. leave it disconnected? combine all the power wires together? combine with diodes so there isn't any back-feeding?
|
# ? Dec 31, 2013 02:08 |
|
quadpus posted:i'm setting up my new raspberry pi (thanks Sir DonkeyPunch!) and my usb wifi dongle needs external power. i could buy a good powered hub and call it a day, but when i start putting actual money into something like this it loses its fun, so i think i ought to make a power injector from garbage i have lying around. if it were just a matter of supplying power to the dongle, you'd connect the grounds together but only connect the +5 from the power source, and connect the D+ and D- from the host (pi). unfortunately, usb power isn't as simple as that, because to support powered and unpowered hubs the device has to negotiate for power with what its plugged into, so if the data signals are connected to something that will only support 100ma, as if it were an unpowered hub, the device won't be able to negotiate more even though your hacked power supply will provide more current (a powered device can supply up to 500ma). the pi has to act like an unpowered hub because if you are powering it thru the usb host port it can't draw more than 500ma a cheap powered hub is probably yoru best shot if you can get a powered hub though i think you can connect the input usb on the pi to the usb hub just to get power if it has enough ports, so you only need one ps.
|
# ? Dec 31, 2013 04:19 |
|
do devices really negotiate for power over the bus or is that just a weird way of explaining I=V/R
|
# ? Dec 31, 2013 04:31 |
|
no, they really negotiate for power. the device isn't supposed to draw more than 100ma at any time unless it has communicated with the host and gotten a response that says "it's ok to draw more" at which point it may switch on its higher power features. standard high-power is 500ma but now i think some of the specs allow up to 2a for fast charging phones and so on. generally if the device draws more than it's qualified for -- something you can easily do if you have say a usb-powered microcontroller like an arduino and you start running motors or solenoids off it -- the usb host will selectively disable the port to prevent damage. hopefully.
|
# ? Dec 31, 2013 04:38 |
|
Corla Plankun posted:do devices really negotiate for power over the bus or is that just a weird way of explaining I=V/R they're supposed to negotiate if you have a powered hub, each device can draw up to 500ma. if you have an unpowered hub, though, and that's powered by a usb host, then the hub plus everything plugged into it can only draw 500ma total (without violating the specifcation, anyway). the usb standard defines 100ma as the "starting" current you're allowed to draw, then you ask for more, so that you can have a 4-port unpowered hub without going over 500ma from the host. of course not every host/hub/device plays nice but that's how its supposed to work chargers are a different deal: the device detects that d+ and d- are shorted together, and that allows the device to draw up to 1A (or 1.2A? i can't remember). to get more than that (for say tablets) different manufacturers use other tricks on the d+/d- signals. apple chargers have resistor voltage dividers on those signals so an ipad can sense its plugged into an apple charger by sensing the analog voltage.
|
# ? Dec 31, 2013 04:38 |
|
Mathhole posted:next make a markov image generator using okcupid profiles pics to train the model. its weird because this thought occurred to me but sounded pretty
|
# ? Dec 31, 2013 06:15 |
|
ugh this is why standardizing on usb power is so dumb. so what do passive phone chargers do so that the phone knows its ok to draw more power?
|
# ? Dec 31, 2013 06:32 |
|
as base emitter says, cheap chargers just have the two data lines shorted together, and the device is supposed to read the continuity across them and recognize that it's a charger. apple chargers add a pair of resistors to the data lines instead, forming a voltage divider, so that apple products know not to mingle with inferior non-apple electrical supplies
|
# ? Dec 31, 2013 06:43 |
|
Sagebrush posted:as base emitter says, cheap chargers just have the two data lines shorted together, and the device is supposed to read the continuity across them and recognize that it's a charger. apple chargers add a pair of resistors to the data lines instead, forming a voltage divider, so that apple products know not to mingle with inferior non-apple electrical supplies drat you youre too fast
|
# ? Dec 31, 2013 06:43 |
|
oh right. i skimmed that too fast anyway i found a usb hub from 2006! it's USB 1.1, and it has a power port, but no supply to go with it. I found a 5V 2.4A power supply and hacked the correct connector onto it, and it looks like I have a working powered hub! since that's working well enough for now, i only have to deal with your everyday linux wireless problems! it didn't work on first try. dmesg says i'm missing firmware. googled the driver name (carl9170) found the firmware, and copied it to /lib/firmware. now i'm in business! quadpus fucked around with this message at 07:09 on Dec 31, 2013 |
# ? Dec 31, 2013 07:01 |
|
yo i got this arduino uno for christmas and I'm thinking I want to build a robot with optional control from my iPad or some other OSC/serial poo poo. thanx to my job I can easily get little bits of scrap aluminum and wood, sometimes even mechanical parts. thoughts? tia
|
# ? Jan 3, 2014 04:13 |
|
you can get wifi "shields" to add onto your arduino, so your ipad can potentially communicate with the arduino over wifi.
|
# ? Jan 3, 2014 04:37 |
|
why would you shield the wifi? wouldn't that make it pointless?
|
# ? Jan 3, 2014 04:39 |
|
yeh you'll need the wifi shield. iirc the wifi shield libraries let you screw around with tcp and udp packets directly so if you know something about networking that's probably the best way to go. you'll have to program the ipad app of course as well. if you want the easiest way of running little dc motors without blowing out the controller, the little $5 guys at the bottom of this pololu page are probably the b est http://www.pololu.com/category/11/brushed-dc-motor-drivers if you need more power go up to hobby rc brushless motors and the simple speed controllers they sell on hobbyking. talk to them with the arduino servo library. you can also roll your own pretty easily but eh running a simple tank-drive bot for $10 seems ok to me. Shaggar posted:why would you shield the wifi? wouldn't that make it pointless? oh, you if this post isn't sarcastic, a "shield" is a carrier board that sticks on top of the arduino and adds functionality while bringing the data pins up
|
# ? Jan 3, 2014 04:42 |
|
Sagebrush posted:yeh you'll need the wifi shield. iirc the wifi shield libraries let you screw around with tcp and udp packets directly so if you know something about networking that's probably the best way to go. you'll have to program the ipad app of course as well. thnx for all that. I was going to use the TouchOSC app for iPad (http://hexler.net/software/touchosc) since I had done some poo poo with it trying to build a control panel for a DAW, and really liked the look/ease of use. That, or the c74 app, and build it in MaxMSP, since I know that pretty ok too. the hardest part imo is going to be coding the bot itself.
|
# ? Jan 3, 2014 05:09 |
|
well, luckily coding the robot itself is super easy, if you use motor controllers that read normal servo commands it's like motorleft.write(100); to make the motor spin. really dumbly simple
|
# ? Jan 3, 2014 05:18 |
|
|
# ? Jan 3, 2014 05:56 |
|
Nice!
|
# ? Jan 3, 2014 19:59 |
|
O(n lg n) voronoi diagrams onna sphere with this done i can adapt my climate model to use a) whatever mesh i want b) a multigrid solver coffeetable fucked around with this message at 20:26 on Jan 3, 2014 |
# ? Jan 3, 2014 20:02 |
|
Sagebrush posted:well, luckily coding the robot itself is super easy, if you use motor controllers that read normal servo commands it's like yeah the arduino is dead simple for servo/motor control, just make sure youve got everything hooked up correctly power-wise because a lot of people gently caress that up ps connect your fuckin grounds
|
# ? Jan 3, 2014 20:12 |
|
power is hard :[
|
# ? Jan 3, 2014 20:36 |
|
Building a little temperature logging thing. The actual thing won't use an Arduino, the one in the pic is just for testing. It's also gonna use this clock IC that I've got and a 16x2 LCD. Can't decide what I should save the data to. The ATmega328 MCU has 1K internal EEPROM, and I've got a couple of 32K serial EEPROMs laying around. Both of those would make saving the data easy, and the 32K serial EEPROM doesn't need much beyond just hooking it up to the MCU's I2C bus, but I'm not sure how I'd get the data back out. I could save the data to an SD card instead of an EEPROM, but then I'd need a decent amount of extra logic since SD cards run at 3.3V and the rest of my project is using 5V. Plus I'd have a lot more code to write (the actual code is gonna be C, so using the Arduino SD card/FAT library is out). Temperature readings seem ballpark accurate (haven't verified with an actual thermometer yet) and stable, at least.
|
# ? Jan 3, 2014 20:44 |
|
coffeetable posted:O(n lg n) voronoi diagrams onna sphere do you use great circles for your edges?
|
# ? Jan 3, 2014 20:47 |
|
i guess it probably doesn't matter because youre just going to integrate over the area anyway
|
# ? Jan 3, 2014 20:48 |
|
Doc Block posted:
whatever you do don't use an sd card they're a loving pain in the dick to use
|
# ? Jan 3, 2014 20:49 |
|
Mathhole posted:do you use great circles for your edges? the edges are segments of great circles, yeah. the beachline is formed by spherical ellipses, w/ one focus at the site and the other at the north pole e: here's the paper, though i adapted it heavily to avoid using any trig or a prime meridian coffeetable fucked around with this message at 20:54 on Jan 3, 2014 |
# ? Jan 3, 2014 20:51 |
|
coffeetable posted:to avoid using any trig why would you avoid trig when you're doing spherestuff
|
# ? Jan 3, 2014 20:59 |
|
Bloody posted:whatever you do don't use an sd card they're a loving pain in the dick to use nah sd is cool use all the sds
|
# ? Jan 3, 2014 21:00 |
|
peepsalot posted:nah sd is cool use all the sds incorrect
|
# ? Jan 3, 2014 21:00 |
|
then again every time i get to use sd cards its through bespoke artisanal embedded HALs or bespoke artisanal hardware-level controllers that are held together by baling wire and spit one of those hardware-level controllers invented a new form of byte-endianness that i call middle-endian it's where you take the nibbles of a byte AB and write them BA.
|
# ? Jan 3, 2014 21:02 |
|
wth trig is a good poster dont avoid
|
# ? Jan 3, 2014 21:02 |
|
Bloody posted:whatever you do don't use an sd card they're a loving pain in the dick to use if i do i'll probably just buy an SD reader breakout board from adafruit, since they have the 3.3V regulator and 3.3V-5V logic level converter right on the board and use SMD components so they're smaller than if I made one myself. Doc Block fucked around with this message at 21:09 on Jan 3, 2014 |
# ? Jan 3, 2014 21:04 |
|
Bloody posted:then again every time i get to use sd cards its through bespoke artisanal embedded HALs or bespoke artisanal hardware-level controllers that are held together by baling wire and spit well yeah there ya go. use an ~sd shield~ problem solved (and BOM quadrupled, at least)
|
# ? Jan 3, 2014 21:05 |
|
but but but you could cram an SD driver and FAT32 file system into your msp430 with a whopping five hundred and twelve bytes of ram and then
|
# ? Jan 3, 2014 21:06 |
|
i still have an msp430 sitting in its box that i picked up like two years ago when they were doing that $4.30 thing and i've done nothing with it. probably because the dev tools looked like poo poo
|
# ? Jan 3, 2014 21:07 |
|
Bloody posted:but but but you could cram an SD driver and FAT32 file system into your msp430 with a whopping five hundred and twelve bytes of ram and then nah dont bother with fat32 just use block device
|
# ? Jan 3, 2014 21:08 |
|
|
# ? Apr 28, 2024 07:15 |
|
peepsalot posted:nah dont bother with fat32 just use block device im just sharing traumatic past work experience dont worry thats what we wound up doing after the file system performance was unsurprisingly lackluster
|
# ? Jan 3, 2014 21:11 |