#avr | Logs for 2013-12-15

Back
[02:01:01] <megal0maniac_afk> Quick question. I'm in a car with limited cables. Can I set an output low and use it as ground?
[02:01:48] <megal0maniac_afk> I know it isn't strictly speaking correct, but will it work?
[02:16:40] <megal0maniac_afk> I guess I'll have to try it :)
[02:29:29] <Storyteller> run a wire to the metal body
[02:39:14] <megal0maniac_afk> Storyteller: I'm in a car. I don't have other options. I just want to know if that will work
[03:25:05] <OndraSter> megal0maniac_afk, it will, but with a few mA
[03:25:06] <OndraSter> limit
[03:25:06] <OndraSter> on another note, since where does DC have "ground"?
[03:25:06] <OndraSter> I thought it had + and -
[03:25:06] <OndraSter> where - can be grounded
[03:25:13] <OndraSter> or + can be grounded
[03:25:21] <OndraSter> or does not have to be grounded anything
[04:33:24] <Epsilon-Auriga_> megal0maniac_afk: ground is a relative point....0V or the - terminal on the battery is generally accepted as ground or GND reference.
[04:34:40] <Epsilon-Auriga_> it's really an old term now in DC power where we have VSS, VDD, and VCC these days.
[04:36:23] <Epsilon-Auriga_> along with VDD, VEE, and VPP
[04:38:08] <Epsilon-Auriga_> VPP=programmer voltage, VEE=negative supply, VSS=+Voltage source, VCC=+Voltage source for bipolar devices, VDD=+voltage source for unipolar sources
[04:38:29] <Epsilon-Auriga_> wait, one of those is wrong.
[04:39:25] <Epsilon-Auriga_> VSS=-voltage source
[04:40:03] <bitd> Geez :P
[04:40:09] <bitd> Thats a lot.
[04:40:29] <bitd> What happened to V++ and GND
[04:40:57] <Epsilon-Auriga_> V++ is VDD and GND is VSS
[04:41:16] <Epsilon-Auriga_> and VCC is used in place of VDD quite often.
[04:41:30] <Epsilon-Auriga_> even though you aren't running a bipolar power supply.
[04:42:14] <Epsilon-Auriga_> it's all kinds of confusing.
[04:42:20] <bitd> Yes, it is.
[04:42:26] <Epsilon-Auriga_> when I started with electronics we had +V, -V, and GND.
[04:42:35] <bitd> Haha, neat.
[04:43:08] <Epsilon-Auriga_> at least, that's all I knew about from my Forrest M. Mimms III mini notebooks and Getting Started In Electronics.
[04:44:17] <Epsilon-Auriga_> http://en.wikipedia.org/wiki/IC_power-supply_pin
[04:44:30] <Epsilon-Auriga_> that explains the whole V** world.
[04:44:52] <OndraSter> :)
[04:47:26] <Epsilon-Auriga_> megal0maniac_afk: so, in the end, are you wanting to use the body of the car as one wire? if so, does your device power from the car or does it have its own power supply?
[04:47:57] <Epsilon-Auriga_> if it powers from the car then you use the frame as negative battery and/or ground usually.
[04:48:47] <Epsilon-Auriga_> if it has its own power and everything it connects to is independent then you can use the frame as a wire....if it connects to anything else run by the car then you could have issues.
[04:48:57] <Epsilon-Auriga_> DC voltage is all relative.
[08:19:51] <Santh> Hi, anyone knows how to change a sample playback speed on a fixed sample rate design? (e.g. 16kHz)
[08:20:21] <Santh> I saw an algorithm once, but I can't manage to find it again
[08:21:31] <hackvana> Santh: Is this a software or a hardware question?
[08:22:56] <Santh> I want to design a small one-chip synth with an ATMega ;)
[08:30:59] <hackvana> One way is to do a FFT on the sample, adjust the frequency of resulting bins, and resynthesise the signal.
[08:31:07] <hackvana> ATMega? Good luck with that.
[08:32:33] <hackvana> http://www.youtube.com/watch?v=_KwS2qCCGzs
[08:32:34] <LobsterMan> YouTube Title: Pitch Shifter (Transposer) Length: 1:01
[08:34:07] <hackvana> http://hackaday.com/2011/03/17/pitch-shifter-makes-your-band-sing-higher/
[08:36:27] <hackvana> http://elm-chan.org/works/vp/report.html
[08:37:05] <Santh> Well pitch-shifting is not exactly what I'm looking for, I want to do a quick and dirty real time resampling
[08:37:37] <Santh> Nice page
[09:06:54] <megal0maniac_afk> Epsilon-Auriga_: I just happened to be in a car(limited resources), laptop was the supply. The current limit makes sense. I still don't have any way to connect ground properly, so I'll try when I get inside :) I was hoping it would work as a logical ground (reference)
[10:21:18] <jacekowski> Santh: upsample it and then downsample
[11:00:53] <Duality> any ideas? I want to draw arcs, but using the sine and cosine functions are expensive.
[11:16:22] <Epsilon-Auriga_> use sin and cos lookup tables.
[11:17:08] <Epsilon-Auriga_> pre-calculate and put the numbers in flash then do a lookup.
[11:17:16] <kdehl> Does anyone of you guys recognize this laptop?
[11:17:18] <kdehl> http://www.tradera.com/item/340854/197789297/super-gammal-laptop-retro-antik-samlarobjekt
[11:17:30] <Epsilon-Auriga_> that's how we did it on the vic-20 and c-64 back in the day to get speed.
[11:18:19] <Epsilon-Auriga_> kdehl: looks like an old 286 laptop I had years ago.
[11:18:34] <kdehl> Cool!
[11:18:46] <kdehl> I tried to google it, found nothing, realized I spelt it wrong.
[11:18:55] <Epsilon-Auriga_> not sure though..just looks very similar.
[11:19:10] <Epsilon-Auriga_> I can't read whatever language that is though.
[11:19:34] <MrMobius> tables in flash will work. you can also use something called CORDIC if you want more accuracy. it works well on mcus because it only uses adds and shifts.
[11:19:56] <kdehl> It's Swedish.
[11:20:09] <kdehl> Hm. It's a 486. It's a little too new to me.
[11:20:57] <Epsilon-Auriga_> not into those new fangled 32bit computers, eh?
[11:21:33] <kdehl> Hells no.
[11:21:50] <kdehl> To many bits to keep track of to me.
[11:22:22] <Epsilon-Auriga_> I miss the days of manually setting IRQs with jumpers and dip switches.
[11:22:39] <Epsilon-Auriga_> back when setting up a computer from scratch was an art form.
[11:22:51] <Epsilon-Auriga_> before everybody and their cousin billyjoejimbob could do it.
[11:23:19] <kdehl> You could still do it. Order an IBM 5160 on ebay.
[11:24:13] <Epsilon-Auriga_> I have plenty of old hardware I don't use as it is.
[11:24:40] <kdehl> Heh.
[11:24:46] <Epsilon-Auriga_> xt, at, 386dx40, 486dx50(not dx2-50 but a real dx-50)
[11:25:05] <Epsilon-Auriga_> that 486dx-50 has 16MB of ram too!
[11:25:09] <kdehl> I threw everything away a few years ago. It's about time to get some new...
[11:25:14] <kdehl> Heh. cool.
[11:25:59] <Epsilon-Auriga_> I even have a 40MB 8bit IDE hardcard that will work in everything from the XT on up so long as you have an ISA slot.
[11:26:16] <kdehl> Does it work?
[11:26:20] <Epsilon-Auriga_> yup.
[11:26:24] <kdehl> I've never seen a working hardcard.
[11:26:24] <Epsilon-Auriga_> well, it did last year.
[11:26:28] <kdehl> Heh.
[11:26:35] <MrMobius> someone got a 40mhz 486 going on a breadboard not long ago for a uni project
[11:26:40] <Epsilon-Auriga_> I dig the junk out once a year and play.
[11:26:44] <kdehl> That ought to be makeable nowadays.
[11:27:10] <Epsilon-Auriga_> a 20MHZ AVR is probably faster
[11:27:12] <kdehl> Put in a bunch of EEPROM chips and you're done.
[11:28:13] <Epsilon-Auriga_> heck, I have a 50MHz pic32 here that is probably as fast as my first pentium 60.
[11:28:29] <kdehl> Heh.
[11:28:49] <Epsilon-Auriga_> and the pic32 is a 28pin dip
[11:29:36] <Epsilon-Auriga_> my how things have changed in the last 20 years.
[11:29:41] <kdehl> Yup.
[11:29:52] <kdehl> It's crazy.
[11:30:22] <Epsilon-Auriga_> heck, the nurses at the local hospital here have startrek like comms badges,,,kindasorta.
[11:30:24] <kdehl> When all we do on computers are almost the same as 20 years ago. We just watch a little more videos now.
[11:30:48] <Epsilon-Auriga_> 2cm x 2cm x 10cm thingie that clips to the shirt.
[11:31:01] <Epsilon-Auriga_> press button, say "find Lisa Smith"
[11:31:13] <Epsilon-Auriga_> and it puts the connection through to said person.
[11:31:17] <kdehl> You don't have an XT motherboard you want to get rid of?
[11:31:29] <Epsilon-Auriga_> nope.
[11:31:43] <Epsilon-Auriga_> have several c64 boxes I can part with though.
[11:31:50] <kdehl> Heh.
[11:32:06] <kdehl> Nah, I have a C64 and boxed C128 already.
[11:32:25] <Epsilon-Auriga_> I have 2 vic-20, 6 c-64, 1 c-64c, 1 c-128
[11:32:31] <Shavik> Hello all
[11:32:43] <Epsilon-Auriga_> want an amiga 500 and amiga 1000 and amiga 2000...and, really want an amiga 2000ux
[11:32:45] <Epsilon-Auriga_> hello Shavik
[11:32:48] <Shavik> :)
[11:33:07] <kdehl> *3000ux
[11:33:15] <Epsilon-Auriga_> there was a 2000ux
[11:33:24] <Shavik> So I hate to just drop in with a question but just discovered this channel. and I've been really wracking my brain on doing my new project in pure avr c and not using the Arduino Libs on an Atmega328
[11:33:28] <Epsilon-Auriga_> probably 3000ux too...I got out of amiga after the 2000.
[11:33:38] <kdehl> I've never heard of a 2000ux
[11:33:46] <Shavik> I'm trying to setup Phase Correct PWM to drive 4 ESC's for a quadcopter
[11:33:49] <Shavik> http://pastebin.com/QH9g5EDu
[11:34:04] <kdehl> Was it the same Unix version on that?
[11:34:04] <Shavik> Is what I'm trying but on my oscope I'm not seeing any signals output pins
[11:34:17] <Shavik> signals on my output pins*
[11:34:48] <Epsilon-Auriga_> kdehl: no clue...I only ever saw one...
[11:35:21] <Epsilon-Auriga_> Shavik: will have to let someone who does PWM play with that one...might wait a bit and see if anybody answers.
[11:35:41] <kdehl> Epsilon-Auriga_: I searched around. Italian Wikipedia has a 2500UX page.
[11:36:00] <Shavik> Alright, I suppose I could work on the TWI side of things for a while. Probably will hit a wall there too lol
[11:36:01] <kdehl> Interesting, never heard of that model.
[11:36:05] <Epsilon-Auriga_> yeah...it was an a2000 with the accelerator board and a harddrive with unix dualbooted.
[11:36:57] <Epsilon-Auriga_> ok...back to the workshop to make some more sawdust!
[11:36:59] <kdehl> Hm. I thought Amiga only made one Unix version.
[11:41:50] <Shavik> Interesting
[11:41:54] <Shavik> I had not checked all the pins
[11:41:58] <Shavik> some are generating pwm signals
[11:42:05] <Shavik> interesting
[11:48:26] <DanFrederiksen> ltspice can't use mega prefix?
[12:00:25] <Shavik> Well OC2B and OC2A are generating PWM signals. not the right frequency, but its something I guess. OC0A and OC0B are not doing anything
[12:00:45] <Shavik> http://pastebin.com/BRGw2cEd is the latest
[12:15:41] <DanFrederiksen> Epsilon-Auriga_, you have been in a coma for 20 years?
[12:19:31] <carabia> where's beaky
[13:39:32] <Epsilon-Auriga_> DanFrederiksen: no, why?
[13:51:02] <DanFrederiksen> Epsilon-Auriga_, amiga is done
[13:51:26] <Epsilon-Auriga_> DanFrederiksen: so is vic-20 but I still play vic-20 games.
[13:51:38] <DanFrederiksen> that's not something you should be proud of
[13:51:39] <Epsilon-Auriga_> on a vic-20 and a projector with a 12 foot diagonal projection
[13:52:20] <Epsilon-Auriga_> the things those programmers did back then with that limited hardware was simply fucking awesome...at least to me.
[13:52:32] <DanFrederiksen> we are in space, on the verge of open contact with advanced ET cultures. and you waste your life on that
[13:53:20] <DanFrederiksen> amiga500 was cool at the time but commodore dropped the ball something fierce
[13:53:30] <Epsilon-Auriga_> no. I waste my life making chicken feeders on the weekend.
[13:53:35] <Epsilon-Auriga_> of course they did..
[13:53:51] <Epsilon-Auriga_> the amiga was the most awesome computer for the time.
[13:54:16] <Epsilon-Auriga_> multiple processors, dedicated video and audio hardware that blew away anything else of the time less than 5000 dollars.
[13:54:21] <DanFrederiksen> a mere 25 years ago
[13:54:33] <Epsilon-Auriga_> apple even used the amiga.
[13:54:48] <Epsilon-Auriga_> mac video editing hardware used a "video toaster workstation"
[13:54:57] <Epsilon-Auriga_> the mac ran the front end controller via the serial port.
[13:55:18] <Epsilon-Auriga_> but the video toaster workstation was an amiga with a 68020 or 68030 processor and a video toaster board.
[13:55:47] <Epsilon-Auriga_> that device sold, complete, for under 5000....to do the same thing on the PC cost over 15000.
[13:55:56] <DanFrederiksen> spare me your sad devotion to the past
[13:56:07] <Epsilon-Auriga_> but commodore crapped themselves.
[13:56:31] <Epsilon-Auriga_> when they went bankrupt they had literally hundreds of thousands of machines sitting in the warehouse that weren't accounted for on the books.
[13:56:52] <DanFrederiksen> probably because they were worthless
[13:57:13] <Epsilon-Auriga_> brand new amiga1200
[13:57:47] <Epsilon-Auriga_> like an amiga 500 with built in harddrive and lots more memory and faster processor.
[13:58:03] <Epsilon-Auriga_> anyhow
[13:58:16] <DanFrederiksen> I had both 500 and 1200. I'm familiar with it
[13:58:28] <Epsilon-Auriga_> these days I play with 8bit processor on a chip that's more powerful than my amiga1000.
[14:00:08] <MrMobius> technically more powerful but i think if you recreated something like that with an avr it would be less powerful
[14:00:18] <Epsilon-Auriga_> yeah.
[14:00:38] <Epsilon-Auriga_> would need an atxmega to approach the processing power overall.
[14:00:39] <DanFrederiksen> faster than the motorola. not the chipset
[14:04:59] <carabia> fuck vic-20
[14:05:05] <carabia> c64 is where it's at
[14:05:21] <Epsilon-Auriga_> vic-20 was my first ever computer.
[14:05:40] <Epsilon-Auriga_> of all of them, the c-128 is my favorite.
[14:05:56] <Epsilon-Auriga_> dual-boot...commodore basic or switch to z80 and run cpm.
[14:06:00] <MrMobius> i got a c64 years later that worked well but now it only shows a blue or green screen when you turn it on. apparently they do that after something comes unsoldered. never got it fixed.
[14:06:34] <Epsilon-Auriga_> the sid-2 chips out of c64s sell for decent money if the rest of the machine is dead.
[14:06:45] <MrMobius> the sound chip?
[14:06:45] <Epsilon-Auriga_> people use them for retro music machines.
[14:06:48] <Epsilon-Auriga_> yeah.
[14:06:53] <carabia> got like 3x 1541's
[14:06:58] <Epsilon-Auriga_> oooo.
[14:07:02] <Epsilon-Auriga_> I need a 1581.
[14:07:03] <carabia> a few keyboards... a single tape drive
[14:16:24] <Shavik> Fixed my timer issue :)
[14:16:32] <Shavik> 3-4 hours later
[14:36:20] <kdehl> I need a 1581 too.
[14:59:44] <Epsilon-Auriga_> I've seen them on ebay but they are pricy.
[15:43:53] <twnqx> :>
[15:44:13] <twnqx> Epsilon-Auriga_: be careful about fake chinese ones, they sound... wrong :P
[15:44:58] <twnqx> ... did i just mix up the SID?
[15:45:15] <twnqx> 1581 was the 3.5" fdd, right? :X
[15:46:46] <twnqx> meh. two of the ws2812b on this board died :(
[16:08:39] <Epsilon-Auriga_> correct on the 1581
[16:08:52] <Epsilon-Auriga_> I have no need to buy any SID chips.
[16:09:04] <Epsilon-Auriga_> I'm not a musicphile.
[16:49:03] <ColdKeyboard> Did anyone have and issue when connecting external USB HDD to USB host and it doesn't work and makes noises?
[16:59:45] <Casper> ColdKeyboard: sound like a dead hd
[17:06:57] <ColdKeyboard> No, it works fine when I connect it directly to my laptop but when I try to connecti ti over USB hub it doesn't work...
[17:07:04] <ColdKeyboard> USB hub has external power
[17:13:30] <N2TOH> try a different hub :)
[17:13:46] <N2TOH> then again a hub usuall fixes odd problems
[17:14:20] <ColdKeyboard> I'm not sure it will work but I will try to find another HUB to try it
[17:53:05] <Casper> ColdKeyboard: some hds just don't work reliably on usb alone
[17:57:50] <ColdKeyboard> I have USB hub on external power supply 5V 1A
[17:57:51] <ColdKeyboard> :)
[17:59:00] <Casper> try to NOT use external hub
[17:59:06] <Casper> use the back plug on your pc
[17:59:13] <Casper> might fix the issue
[18:05:05] <OndraSter> http://canonical.org/~kragen/sw/dev3/server.s
[18:05:37] <OndraSter> anyone porting it to AVR? :D
[18:10:05] <ColdKeyboard> Casper: I know it will, but I don't have 20 USB ports on my Laptop... :)
[18:10:13] <ColdKeyboard> It would be really nice if it would work over USB hub
[18:16:27] <N2TOH> http://blackhawkparamotor.com/parmotors/blackhawk-hellcat-four-stroke-paramotor/
[18:16:37] <N2TOH> OK need an auto NAV system for that
[18:17:10] <rue_shop2> yay I wrote a C program to flash an led and have it running on a t13
[18:17:44] <rue_shop2> now to write an ai with voice recognition and speech generation
[18:30:59] <Epsilon-Auriga_> isn't that tiny13 a bit large for that?
[18:31:50] <Tachyon`> rue_shop2, there's a port of the old superior software speech synthesis for the mega328, although you need an rc filter and an LM386 to get the audio bacjk
[18:32:10] <Tachyon`> only uses about 10K, leaving you with 22 for your speech recognition and AI
[18:34:30] <rue_shop2> Epsilon-Auriga_, damn, your right, should I use a tiny10?
[18:34:39] <Epsilon-Auriga_> yup.
[18:34:52] <rue_shop2> do they make a 2 pin 0806 avr?
[18:34:54] <Epsilon-Auriga_> don't forget to add the robotic control interface..
[18:35:02] <Epsilon-Auriga_> I think there is a 6 pin.
[19:07:40] <rue_more> anyone know how stable a t13 internal osc is?
[19:11:48] <Epsilon-Auriga_> stable as any other avr oscillator.
[19:12:07] <Epsilon-Auriga_> which is to say, 10 degree temp difference will throw it off enough to screw up 9600 serial comms.
[19:12:42] <Epsilon-Auriga_> but you can always autobaud.
[22:45:09] <braincracker> hm i should compile something, because my psu exhales cold water
[22:46:47] <Casper> I should do something, because the bathroom ceiling fan don't exhale air outside
[22:47:13] <Casper> 2 possibility: the pipe filled with condensed water or the trap outside is frozen shut
[22:47:26] <braincracker> hah, sounds like bearing rot away
[22:47:30] <braincracker> is it bldc ?
[22:47:41] <Casper> ?
[22:47:55] <braincracker> i assume it is brushless
[22:48:15] <Casper> the fan is fine
[22:49:00] <braincracker> then air is frozen
[22:49:08] <Casper> -15C outside
[22:49:13] <braincracker> :)
[22:49:33] <Casper> I hope it's the trap
[22:49:53] <Casper> else it mean I need to go in the attic and make a pipe support so all condensate drip outside
[22:49:56] <braincracker> water vapor probably formed a huge ice cube
[22:50:03] <Casper> possibly
[22:50:08] <Casper> but I used insulated pipe
[22:50:16] <braincracker> what diameter piping you have?:
[22:50:17] <Casper> so shouln't happend... normally
[22:50:19] <braincracker> ;/
[22:50:20] <Casper> 4"
[22:50:35] <braincracker> you may have a large ice plug in it
[22:50:42] <Casper> yeah, may
[22:50:43] <braincracker> don'z know what's the design
[22:51:12] <Casper> http://image.made-in-china.com/2f0j00sCFESaURsGqY/Insulated-Flexible-Duct.jpg ← that kind
[22:56:13] <braincracker> i mean i don't know if it is vertical, how long, where can it become colder than 0C
[22:56:28] <braincracker> or if water will stagnate in the middle
[22:56:58] <Casper> oh
[22:57:14] <braincracker> oh wow it is insulated
[22:57:27] <braincracker> but that will not save it from freezing :)
[22:57:35] <Casper> basically rise about 6", then horisontal for about 15ft, then 1ft rise, then out thru the wall
[22:57:36] <braincracker> if you take it outside
[22:58:02] <Casper> it's in the attic, which of course is at the outside temperature
[23:03:40] <braincracker> hm
[23:03:58] <braincracker> you could fix the problem if you add heaters to the tube
[23:04:34] <braincracker> and a temperature controller with a small ssr that turns on below 5C
[23:04:51] <Casper> or just make a slope so it naturally drain
[23:05:13] <braincracker> no matter
[23:05:15] <braincracker> :)
[23:05:34] <braincracker> if there is water below 0, it will freeze, and accumulate over time
[23:05:38] <braincracker> layer by layer
[23:06:04] <Casper> but the air in the pipe is warm, will make it unfreeze :D
[23:06:53] <braincracker> if air is not circulating in it, then no
[23:07:18] <braincracker> air will just get cold eventually inside your insulated pipe
[23:07:44] <Casper> yup
[23:07:51] <Casper> and that will freeze the droplets inside
[23:08:03] <Casper> but a minute after the fan got turned on it will be all gone
[23:34:40] <Casper> braincracker: the 20ft pole said: frozen shut
[23:35:57] <braincracker> :)
[23:36:21] <Casper> which mean that if it freeze shut again... I'll have to replace it.. AGAIN
[23:53:28] <braincracker> don't
[23:53:32] <braincracker> fix it
[23:53:41] <braincracker> mr. fixit :)