#avr | Logs for 2012-03-14

Back
[00:02:50] <Roklobsta> i guess, i think he took a copy when he left
[00:02:59] <Roklobsta> he is nwo a company director so who knows
[00:04:21] <mog> inflex, i have oleds they just use too much current to run a coincell off of
[00:04:34] <mog> thanks though
[00:12:22] <inflex> np
[00:12:29] <inflex> well, the 8x2s were the smallest low power I could get
[00:13:02] <inflex> http://nqrc.com/images/s-PLD-SCC1.jpg
[00:44:57] <mog> inflex, who makes that?
[00:45:41] <inflex> EastTrading LCDs do on AliExpress.com
[00:45:54] <mog> cause that looks like right size
[00:46:47] <inflex> <eastrising.sales@gmail.com>
[00:46:55] <inflex> The part number for 8X2 COG LCD module in our list is ERC802FS-1.
[00:47:07] <inflex> they can also supply the SMD FPC connector
[00:47:11] <mog> searching that on ali doesnt turn anything up
[00:47:22] <inflex> yeah, was meant to be EastRising, sorry
[00:47:34] <mog> ahh
[00:48:10] <mog> that is great size cog
[00:48:48] <inflex> np, are you in Australia?
[00:49:28] <mog> im in usa
[00:49:40] <mog> i have been building a authentication token with an avr
[00:49:52] <mog> but oleds just didnt work well with power constraints
[00:50:38] <mog> ive never purchased through aliexpress before
[00:50:55] <inflex> well, you'll end up buying outside of AlieExpress since they don't have the 8x2's on sale afaik
[00:51:02] <inflex> you have to email them and then they'll organise the purchase
[00:51:06] <inflex> (eastRising)
[00:51:23] <inflex> anyhow, bbl ---- time to do some deliveries
[00:51:46] <mog> thanks sooo much for help inflex
[00:51:53] <mog> i have been looking for a display like this forever
[01:24:13] <inflex> mog: I know... I was the same... when I found it, it was like "YESSSSSS!"
[01:24:21] <inflex> too bad I closed up my manufacturing just after that :\
[01:24:44] <mog> ithey only have 50 left
[01:24:50] <mog> er they only have 50 left
[01:25:29] <mog> wont do another run without 1000 order
[01:38:17] <inflex> O_o
[01:38:27] <inflex> wow, lucky I got the numbers I did
[01:38:29] <inflex> I bought 50 before
[01:38:51] <mog> inflex, if you dont mind me asking what was per unit apx?
[01:39:16] <inflex> I think it was ~3.70/unit
[01:39:21] <inflex> (ex postage)
[01:39:48] <mog> man that is just great
[01:39:56] <mog> i cant wait till they get back to me
[01:40:53] <inflex> btw, I can send you the software to talk to them - since their examples are a bit .... strange.
[01:41:13] <inflex> It's an I2C device
[01:41:30] <mog> oh i thought it was spi for some reason not that it matters too much
[01:41:32] <inflex> 4 pins are for the flyback caps, then 2 for power, then 2 for I2C
[01:41:40] * inflex just bitbashes it
[01:41:56] * mog nods
[01:44:05] <mog> what did you use it for ? picture looks like it is for a battery charge monitor?
[01:45:55] <mog> woot they sent me quote as well
[01:48:09] <mog> i pmed you my email inflex
[02:01:31] <inflex> ta, I'll strip out the stuff you don't need :D
[02:03:52] <mog> thanks
[06:25:14] <grummund> Bwah
[06:25:45] <grummund> Is there any way around the stupid windows behaviour for USB-serial, where it must be physically unplugged and replugged if the resets while windows has the com port open?
[06:26:02] <grummund> ^if the device resets
[06:28:29] <RikusW> grummund: it will enumerate as the next available port if the current port is still opened by an app
[06:28:47] <RikusW> so close the app
[06:28:52] <RikusW> and reset the device again
[06:29:15] <grummund> it doesn't
[06:29:48] <RikusW> it works that way with my board's CDC code
[06:31:07] <grummund> the com port is there in windows device manager (COM9) but cannnot be opened in HTerm
[06:31:45] <grummund> s/HTerm/PuTTY/
[06:32:23] <grummund> physically unplugging/replugging causes it to renumerate as COM9 again, and then it can be opened.
[06:32:25] <RikusW> and while holding down the reset button ?
[06:32:31] <grummund> stupid windows ;-/
[06:32:36] <RikusW> if you have such a button...
[06:33:04] <RikusW> sometimes windows can be a pita :-P
[06:34:40] <grummund> basically if the device resets while windows has the COM port open, the only way to recover is close the COM port *and* then unplug/replug the device
[06:35:26] <grummund> http://stackoverflow.com/questions/2948428/reopening-serial-port-fails-if-not-closed-properly-with-closehandle
[06:36:37] <theBear> yeah, damn, those ms guys really know how to program a device interface eh <grin>
[06:36:49] <ureif> grummund: are you sure ? I think you can reset the COM port from the command line.
[06:36:59] <grummund> ureif: how?
[06:37:14] <ureif> grummund: let me dig around a bit. Haven't done it for many years now.
[06:37:31] <RikusW> grummund: are you using usb avr ?
[06:37:47] <Roklobsta> so far the only USB serial chip that hasn't given me shit is the FTDI.
[06:37:48] <theBear> oh, fake com port eh
[06:37:53] <theBear> that explains the replugging
[06:38:35] <Roklobsta> prolific and others keep going silent needing a replug or BSODing
[06:38:39] <grummund> it's a PIC actually :P
[06:38:48] <Roklobsta> oh PICs are the WORST
[06:38:51] <grummund> AVR+LUFA does the same
[06:38:57] <Roklobsta> and LUFA.
[06:39:04] <Roklobsta> it's worse than PIC
[06:39:15] <grummund> they share the same Windows driver
[06:39:22] <Roklobsta> no i jest. FTDI Just Works.
[06:39:32] <RikusW> so far closing the app and resetting the avr again works for me
[06:39:44] <grummund> FTDI have their own custom windows driver which is why they don't suffer
[06:39:48] <Roklobsta> you can go into windows device manager and show hidden devices.
[06:40:05] <Roklobsta> sometimes com ports show up and you can delete them
[06:40:27] <Roklobsta> i have solved some driver issues by removing ghosts with a utility called ghostbuster.
[06:40:54] <Roklobsta> http://ghostbuster.codeplex.com/
[06:40:56] <grummund> Roklobsta: when it happens, the com port is there in windows device manager but cannnot be opened
[06:41:14] <Roklobsta> yeah I get that with Prolific chips
[06:41:20] <Roklobsta> in win7/x64
[06:41:46] <grummund> prolific share teh same Microsoft USB-serial driver, as with AVR+LUFA, and PIC.
[06:41:58] <grummund> it's ALL microsoft's fault :P
[06:42:08] <ureif> grummund: I think its done with MODE.COM, but the help for it isn't ringing any bells. Perhaps if you reset the port parameters, it also resets the port ? Can you try that out ?
[06:42:29] <Roklobsta> yeah but ... are you saying the prolific part and friends use the generic serial driver in the usb stack?
[06:42:30] <theBear> mode.com still exists ? wow... those guys continue to blow my frickin mind :)
[06:43:02] <grummund> Roklobsta: yes, microsoft supply the dll with windows.
[06:43:18] <Roklobsta> hrm
[06:44:28] <Roklobsta> i am up to COM34 BTW
[06:44:37] <Roklobsta> whup now COM36
[06:45:23] <Roklobsta> i just plugged in a cable that has a chinese CH340 chip. it hangs on me too
[06:45:40] <grummund> ok, i found a way...
[06:45:56] <Roklobsta> to free up used com ports?
[06:46:59] <grummund> Disable/Enable the device in Windows Device Manager, and then the COM can be opened again
[06:47:20] <Roklobsta> that's like unplugigng it
[06:47:33] <grummund> although that's almost as much pain as unplug/replug :P
[06:47:40] <grummund> just need a way to do that programatically.
[06:47:50] <Roklobsta> in the device manager who does it say the deveice provider is?>
[06:47:57] <Roklobsta> it just needs to never happen
[06:56:13] <cyanide> why the fuck is mozilla releasing a new browser every 25 seconds?
[06:56:19] <cyanide> firefox 11? seriously?
[06:56:39] <Tom_itx> maybe they can't seem to get it right
[06:57:41] <cyanide> they havent got it right since firefox 1.5
[06:57:48] <cyanide> everything after that was downhill
[06:58:05] <cyanide> 10 came out in january
[06:58:16] <cyanide> it's march and 11 has come out
[06:58:29] <Sgt_Lemming> yeah, the release cycle is just stupid now
[06:58:41] <Sgt_Lemming> they need to slow down and stabilise it and improve the speed
[06:58:44] <cyanide> http://arstechnica.com/business/news/2012/03/firefox-11-released-with-style-editor-and-3d-dom-viewer.ars?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+arstechnica%2Findex+%28Ars+Technica+-+Featured+Content%29
[06:58:59] <cyanide> because a normal user like me needs a style editor and 3d dom viewer
[06:59:10] <grummund> it's an arms race (against Google)
[06:59:21] <cyanide> http://static.arstechnica.net/2012/03/13/ff113ddom-4f5fdd3-intro.png
[07:01:59] <cyanide> http://www.oldversion.com/Mozilla-Firefox.html
[07:02:06] <cyanide> 0.6 - 1.5 were the shit
[07:02:53] <Sgt_Lemming> eh, I have been using opera as my main browser since probably 2002
[07:02:54] <Sgt_Lemming> and I lurve it
[07:04:20] <cyanide> hmm
[07:04:26] <cyanide> what version was it on back then?
[07:04:30] <cyanide> that's 10 years ago :)
[07:12:03] <grummund> Yay!
[07:12:21] <grummund> devcon restart 'USB\VID_nnnn&PID_nnnn'
[07:12:53] <cyanide> what the?
[07:12:54] <cyanide> http://www.eye.fi/products/connectx2
[07:13:03] <cyanide> sd card with wifi
[07:16:18] <mrfrenzy> that's great stuff
[07:25:45] <RikusW> grummund: how did you discover that ?
[08:06:45] <Valen> i like chrome, I find the developer extensions handy
[08:12:28] <mrfrenzy> they are getting there, but still a bit away from firebug etc
[08:14:55] <mitsakos> hello i have a problem shifting a value in uint32_t. uint32_t temp=0; temp |= (uint32_t)(1<<15); this resaults temp=0xFFFF8000
[08:15:31] <mitsakos> if i try temp |= (uint32_t)(1<<16); or bigger value than 16 then i get temp=0;
[09:15:47] <cyanide> CapnKernel, got the money?
[09:16:02] <CapnKernel> cyanide: Hi there
[09:16:13] <CapnKernel> I don't understand my web site software.
[09:16:17] <CapnKernel> In fact, I hate it.
[09:16:22] <cyanide> lol
[09:16:28] <CapnKernel> I'll send the quote/invoice again.
[09:17:18] <cyanide> ok no problem
[09:19:05] <OndraSter> heya
[09:19:22] <cyanide> hey OndraSter
[09:20:08] <cyanide> CapnKernel, my xmega dev board arrived today. so i don't need any xmegas as of now.
[09:20:15] <OndraSter> hehe
[09:20:19] <OndraSter> what board would that be?
[09:20:56] <cyanide> akafuino x
[09:21:14] <cyanide> also, it was shipped from japan on 26th feb, 2 days before you shipped my boards
[09:21:21] <cyanide> so it's probably arriving this week
[09:21:28] <cyanide> your boards i mean
[09:21:57] <CapnKernel> cyanide: I emailed the invoice to you just then.
[09:22:00] <cyanide> got the invoice
[09:22:37] <cyanide> you've given me a big discount
[09:22:38] <cyanide> :|
[09:23:39] <CapnKernel> What's the problem?
[09:23:49] <CapnKernel> 1 cent more and it would have been over your budget! :-)
[09:24:06] <cyanide> no problem. are you sure that discount's fine with you?
[09:24:31] <CapnKernel> Seriously, it's always my intention to charge less for a bundle of parts, than the sum of the individual parts.
[09:25:18] <mog> inflex, thanks again. I found a place in poland that could send me some test units and found another place in china that has thousands of them
[09:25:27] <cyanide> was it shipped out today?
[09:26:02] <CapnKernel> All the stuff has been packaged, and is waiting in the DHL bag. It would have gone out tonight, but the staff member who prints the shipping ticket let me down :-(
[09:26:17] <cyanide> ok
[09:27:09] <CapnKernel> One more full day until I have to leave. Ghod that sux
[09:27:23] <OndraSter> damn
[09:27:33] <OndraSter> that's bad
[10:21:06] <inflex> mog: good to hear! Once I've cleaned up the software I'll send it to you - I'll even include the char-bitmap loading routines
[10:22:26] <mog> id be interested in that for sure, i like my logo on the oled display and would be nice to get something to appear on this one as well
[10:47:50] <chupas> any ideas on how to convert a number into a ASCII binary?
[10:51:35] <Landon> chupas: eg 67->'67' ?
[10:52:06] <chupas> no, 67 -> '01000011'
[10:52:41] <Landon> so where does ASCII come in?
[10:52:44] <Landon> ohhh
[10:52:50] <Landon> the 0s and 1s are ascii?
[10:52:53] <chupas> yes
[10:53:02] <chupas> I auctualy want to print the number in binay format to an LCD
[10:53:55] <Landon> for i=0..7
[10:54:22] <Landon> (num & 0x01) + '0'
[10:54:29] <Landon> num = num >> 1
[10:55:22] <Landon> just get the last bit and add the ascii 0 to it and you'll get either '0' or '1'
[10:55:28] <Landon> then shift right and repeat
[10:55:37] <chupas> sounds good
[10:55:41] <chupas> ty sir!
[10:55:59] <OndraSter> so
[10:56:05] <OndraSter> I think I blew one of those not cheap TPS54527
[10:56:09] <OndraSter> SMPS controllers.
[10:56:15] <OndraSter> no idea how
[10:56:20] <OndraSter> they worked one time, not anymore the second one
[10:56:36] <OndraSter> there is something around Vcc-1V on feedback pin :(
[10:56:57] <OndraSter> if I blow one more, I am screwed LOL
[10:56:59] <OndraSter> I had only one extra
[11:01:35] <norbi> hello
[11:27:21] <dirty_d> anyone wanna help me with a little circuit analysis?
[11:27:53] <Tom_itx> we are at your becon'd call
[11:29:28] <dirty_d> cool
[11:29:32] <dirty_d> https://6002x.mitx.mit.edu/static/circuits/diode-limiter.gif
[11:29:48] <dirty_d> The resistors both have the resistance R=5.6kΩ. The voltage of the DC sources is V1=3.25V and V2=3.0V.
[11:29:51] <dirty_d> diodes are ideal
[11:29:56] <dirty_d> ac source is 7.5V peak
[11:30:07] <dirty_d> findign the voltage at the node is easy
[11:30:18] <dirty_d> and i thought finding the current would be too
[11:30:23] <dirty_d> but it says its wrong
[11:30:33] <Tom_itx> that looks like school work
[11:30:34] <dirty_d> the max voltage at the node is 3.25
[11:30:37] <dirty_d> it is
[11:30:58] <dirty_d> so i figured the max current through D1 would be
[11:31:05] <dirty_d> (7.5 - 3.25)/5600
[11:31:19] <dirty_d> since its basically a short circuit
[11:31:33] <dirty_d> and the resistor on the right would have no current through it
[11:31:37] <dirty_d> thats what id assume
[11:31:52] <dirty_d> but its telling me its incorrect
[11:37:44] <asteve> dirty_d: are you attending MIT or is this free online course they were doing?
[11:37:57] <dirty_d> asteve, this is the free one
[11:38:11] <asteve> it started a few weeks ago and they're already in diodes?
[11:38:19] <dirty_d> no not really
[11:38:24] <dirty_d> its just an ideal diode
[11:38:29] <dirty_d> no compolexity to it
[11:38:51] <dirty_d> passes anything over 0 volts
[11:38:54] <dirty_d> blocks anything below
[11:39:58] <asteve> the ideal diode passes anything over 1.7 volts
[11:39:59] <Tom_itx> right R will conduct
[11:41:08] <dirty_d> asteve, this is a different kind of ideal diode then
[11:41:13] <dirty_d> its just a plain and simple one way valve
[11:41:51] <dirty_d> Tom_itx, so why is that answer wrong?
[11:42:22] <asteve> dirty_d: you should download a spice, PSPICE has an educational version
[11:43:53] <dirty_d> i have it
[11:44:00] <dirty_d> well, ltspice
[11:44:12] <asteve> build the circuit and analyze it once you've come up with your theoretical answer
[11:45:58] <dirty_d> bleh
[11:46:02] <dirty_d> this is too simple to warrant that
[11:46:06] <dirty_d> and id have to make a fake diode
[11:46:09] <asteve> nothing is too simple
[11:46:10] <dirty_d> with no forward voltage drop
[11:46:35] <dirty_d> https://6002x.mitx.mit.edu/static/circuits/ideal-diode.gif
[11:46:51] <asteve> bitchin diode
[11:47:54] <dirty_d> yea i know
[11:47:55] <dirty_d> lol
[11:53:56] <dirty_d> hmm
[11:55:31] <vectory> dirty_d: should you be able to specify the voltage drop on a standard diode component?
[11:55:50] <dirty_d> or i can just ignore it since its 0
[11:56:08] <dirty_d> and have 2 versions of the circuit
[11:56:17] <dirty_d> where the ac voltage is 7.5 and -7.5
[11:56:59] <vectory> for me the problem would be, i dont know how to do specific simulations with ltspice >_<
[11:57:00] <dirty_d> oh no wonder
[11:57:02] <dirty_d> damnit
[11:57:15] <vectory> well, thinking over the problem was quicker ^^
[11:57:58] <dirty_d> currents add in superposition too right?
[12:03:03] <dirty_d> yea
[12:03:16] <dirty_d> well add or subtract
[12:03:25] <dirty_d> (3.25 / (5600/2)) - (7.5 / 5600)
[12:03:30] <dirty_d> that gives the right answer
[12:13:23] <dirty_d> good good
[12:20:45] <dirty_d> sweet done with week 3
[12:30:46] <learningc> hi guys, what atmel microcontroller chip would you recommend?
[12:32:04] <specing> AT{has feature1}{has feature 2}...{has feature n}
[12:32:18] <specing> That is what I recommend
[12:34:53] <learningc> specing: I know they are all good, but I want the fastest one with most features.
[12:35:49] <mog> learningc, they have a 32 bit 66mhz arm chip
[12:35:57] <mog> that has a lot of stuff
[12:36:16] <mog> but id reccomend a simple atmega328p if your just starting learningc
[12:36:25] <mog> the same you would find on arduino dev board
[12:36:38] <learningc> mog: I would like a 32 bit micro
[12:36:46] <Steffanx> but..
[12:36:47] <learningc> but they have many series
[12:36:54] <Steffanx> Who cares?
[12:37:14] <mog> learningc, what are you trying to do
[12:37:46] <learningc> mog: to make a full featured development board
[12:37:58] <mog> learningc, start with an arduino then
[12:38:18] <mog> it is a decent dev board and has great community to get you started
[12:38:19] <learningc> mog: I don't like arduino
[12:38:24] <mog> why?
[12:39:01] <learningc> mog: I want the best 32 bit avr
[12:39:34] <mog> okay...
[12:40:17] <learningc> mog: something that can do ethernet, tft screen, usb all together
[12:40:24] <mog> this is their beefiest chip http://www.atmel.com/devices/AT32UC3B0512.aspx
[12:40:50] <mog> and you can do all that with a few atmega328ps
[12:40:57] <mog> but if you really want to do full speed ethernet a real display and real usb
[12:41:27] <Steffanx> Isn't the uc3c serie better mog ?
[12:41:49] <Steffanx> Moar speed, FPU
[12:42:11] <learningc> mog: ok thanks
[12:42:55] <Steffanx> The UC3A even has usb high speed
[12:43:11] <Steffanx> *Hi-speed
[12:43:22] <mog> you want an arm chip like ti sells
[12:43:22] <mog> not avr
[12:43:22] <mog> something like the beagle board
[12:43:27] * specing watches learningc fail
[12:43:38] * Steffanx watches specing fail
[12:44:22] <specing> Well, he will not fail
[12:44:32] <specing> He'll just take 10 years to make that board
[12:44:32] <Steffanx> He will
[12:44:35] <mog> learningc, look at the beagle board
[12:44:45] <Steffanx> Oh, you are not that 'he'
[12:45:53] <learningc> specing: which board you mean, ARM or avr32?
[12:47:01] <specing> either
[12:47:16] <mog> and the avr32 is just an arm
[12:49:03] <learningc> specing: well, how difficult would it be to make a board for tqfp100? I understand that BGA is something else
[12:49:22] <mog> learningc, have you designed a board before?
[12:49:43] <learningc> mog: yes, with pic32
[12:50:07] <mog> what is your board going to do that a beagle board doesnt?
[12:51:04] <learningc> mog: it will be a customized board with many different devices on it
[12:51:29] <mog> beagle already accomplishes this...
[12:52:27] <learningc> mog: but I want to make a board myself
[12:52:44] <mog> then make something new
[12:52:54] <mog> why be boring?
[12:53:17] <learningc> mog: I need application specific devices on it
[12:53:33] <mog> then build your application on top of said board
[12:53:44] <mog> it has expansion pins exposed
[12:54:16] <learningc> mog: then buy and resell beagle boards when I sell the products?
[12:54:26] <mog> yes
[12:54:32] <mog> or manufacture your own
[12:54:36] <mog> its open hardware
[12:54:48] <mog> the schematics and gerbers are free
[12:54:58] <mog> as in freedom that is
[12:55:10] <learningc> or as in beer? :)
[12:55:23] <mog> it is also gratis yes
[12:55:46] <mog> but the first matters, the latter not so much
[12:55:55] <learningc> how do yo uactually program the beagle board? It comes with no programmer whatsoever from what I saw
[12:56:13] <mog> several different ways
[12:56:22] <mog> one easy way is it ships with a bootloader
[12:56:29] <mog> that will run things off its sd card
[12:56:31] <learningc> ah I see
[12:56:43] <mog> but i dont know much more than that to be honest i work in lower level embedded space
[12:57:07] <learningc> what if the boodloader become messed up after some time?
[12:57:11] <mog> they have a channel though #beagleboard and #beaglebone
[12:57:26] <mog> im sure you can jtag reprogram it
[12:57:32] <learningc> ah ok
[12:57:58] <learningc> has any of you wired an ARM chip?
[12:58:12] <mog> i have played with it learningc as a guy at my make shop has one
[12:58:25] <mog> but nothing more than blinken lights and running gnu/linux on it
[12:58:47] <learningc> oh ok
[12:59:11] <learningc> I need to develop a touch screen application on it
[12:59:27] <learningc> any leads on how to start?
[13:00:13] <mog> learningc, for beagle board a company sells a kit that has lvds touch screen that plugs into it
[13:00:23] <mog> for avr there is qtouch stuff you can look into
[13:01:45] <learningc> ok thanks
[13:02:07] <mog> take luck
[13:10:22] <dirty_d> learningc, what are you making?
[13:12:21] <learningc> dirty_d: a printer
[13:13:02] <dirty_d> like a 3d one or something?
[13:13:37] <learningc> no, jet printers
[13:14:25] <learningc> is 68KB the maximum internal ram on avr32?
[13:15:43] <dirty_d> i dunno
[13:15:50] <dirty_d> but if going 32bit arm is probably better
[13:17:29] <learningc> what's the difference between -alut and -alur as in at32xxxx-alur ?
[13:22:17] <learningc> do you guys know what's the maximum number I can sample for each device from atmel?
[13:23:20] <abcminiuser> learningc, directly from Atmel, or from a distributor?
[13:23:32] <learningc> abcminiuser: from atmel directly
[13:24:03] <abcminiuser> learningc, 0
[13:24:05] <abcminiuser> Maximum 0
[13:24:14] <Kevin`> most of atmel's devices are available in single quanity from distributors, why would you go through the trouble of sampling them?
[13:24:25] <learningc> abcminiuser: well, they ask me how many I want
[13:24:39] <abcminiuser> learningc, sure, but I've never heard of anyone receiving them
[13:24:54] <abcminiuser> Not saying you can't, just saying you'll have better luck from the distributor
[13:25:19] <learningc> abcminiuser: ok, to be conservative, I'll just sample 2 each of 3 devices
[13:25:58] <learningc> I thought I would push it to 3 x 3 devices, but that might seem too much...
[13:29:10] <mog> ive never gotten anything free from atmel easier / faster to just get stuff via mouser
[13:31:14] <learningc> mog: but they have asked me which parts I want
[13:31:35] <mog> ya they just are humoring you
[13:31:53] <mog> ive gotten tons of free samples quickly from dallas though
[13:31:57] <mog> which i think is nifty
[13:32:42] <learningc> mog: no I think they are serious
[13:32:53] <mog> good luck with that
[13:33:20] <learningc> mog: I'll let you know if I ever get them
[14:11:47] <Xata> hi, i want to start to learn avr assembler, but i have no device to try it on yet. any emulators? does atmel avr studio has emulation or what kind of third-party software should i look for?
[14:13:12] <specing> Xata: get a real chip
[14:13:17] <theBear> been MANY years, but i suspect avr studio, and a couple of the basic compiler/envs for win have basic simulator/emulators, some even with cute things like 'virtual' led and fig8 displays, not sure how many do asm directly tho, maybe have a peek at the avrstudio product/home page under the features ?
[14:14:08] <theBear> studio is much more likely to do asm than the basic ones, if it emulates, but personally, i always do and have done what specing says when it comes to micros, it's too 'abstract' with something like a micro, not at all like emulating a 'computer'
[14:14:51] <theBear> aside from the most basic maths and number handling things, there are too many possibilities for how/what is connected and therefore simulation/emulation becomes kinda pointless/useless
[14:15:13] <theBear> and as far as those basic practice things, one asm is much the same as another
[14:15:58] <theBear> if you really can't wait for the chip to come in the mail, AND plan to program any amount in asm, personally i'd spend my time getting familiar with the registers and arch and maybe even the opcodes
[14:17:32] <Kevin`> Xata: there are emulators, one from atmel, and some third party ones, but I have to agree with theBear. it's not like avr chips are expensive or have unusual operating requirements, just get some
[14:19:09] <chupas> Is there some sort of custom LCD charactor designer out there
[14:19:12] <Xata> theBear: well, actually i am going to start making my huge synthesis project made on mega2560 (arduino, yeah), but because i don't know asm at all, and c/c++ is maybe will be too slow for this i want to learn asm before arduino actually comes to me, so i'll be ready. and what is learning without way to test what you made?
[14:19:16] <theBear> real chips are lots of fun :)
[14:20:06] <theBear> hehe, at least you saved me saying it <grin> how huge are we talking ? and control or soft-synthesis ? audio i assume ? it's quite amazing what even a small avr can do with modern gcc compilers these days
[14:20:16] <Kevin`> Xata: c is fast enough for almost all projects, and will save you a lot of time and sanity. if you find you need something super critical later on, you can use inline asm in c
[14:20:32] <Landon> at the very least, control structures in C will save your sanity :P
[14:21:26] <Kevin`> chupas: you want custom class, or a custom font for a bitmap lcd?
[14:21:55] <chupas> Just a program to create custom chars
[14:21:58] <chupas> http://www.parallax.com/ProductInfo/Microcontrollers/BASICStampSoftware/LCDCharacterCreator/tabid/482/Default.aspx
[14:22:00] <chupas> pretty much that
[14:22:14] <chupas> So nm! because im just going to use that!
[14:22:15] <theBear> i usually program rather err, in a cavalier manner for avr, and my 'favourite' devices are blah-2313 generally, maybe old (2nd gen) mega16 or 32, and only a couple times have i had to tune things 'cos i ran out of cycles or mem with C .. naturally interrupts and time critical stuff you pre-plan to a reasonable extent, but that isn't rocket science
[14:22:30] <Kevin`> Xata: are you using an external dac? i'm suprised you didn't take advantage of xmega's built in adc and use those instead on a project like that
[14:22:57] <Xata> Kevin`: well, i have no even way to i/o with chip even if i will buy one atmega16 for 3$. so no hardware interaction before arduino comes to me. thanks anyway. so C will be fast enough? well, suprisingly, i know C
[14:22:59] <Kevin`> Xata: built in dac*
[14:23:14] <Xata> Kevin`: yeah, r/2r as dac
[14:23:18] <theBear> how fast/'big' is a errm mega2560 ?
[14:23:35] <Kevin`> I think it's the normal 20mhz, but I didn't look
[14:23:36] <theBear> lol, surprisingly eh ? hehe
[14:23:53] <cyanide> 16 mhz
[14:23:56] <theBear> mmm... 20mhz still isn't bad, what kinda synthesis are we talking here ?
[14:24:00] <cyanide> 256kb flash
[14:24:02] <theBear> even 16 isn't bad :)
[14:24:07] <Xata> theBear: still 16mhz
[14:24:40] <cyanide> err
[14:24:51] <cyanide> the arduino mega2560 is 16mhz
[14:25:01] <cyanide> the atmega2560 can run at 20
[14:25:01] <Xata> Kevin`: i will look at it, when i will have a ready-to-go schematics and code
[14:25:03] <Kevin`> Xata: xmega runs at 32mhz from an internal pll and has a dual-channel dac built in
[14:25:56] <Xata> Kevin`: cost? any way to get it in eastern near-europe (ukraine)
[14:26:17] <Kevin`> Xata: I forget, probably around $3
[14:26:34] <Kevin`> could be a bit more, but how many are you building anyway
[14:26:48] <Xata> i need 1. maube 2.
[14:27:02] <cyanide> around 3, yeah
[14:27:10] <Kevin`> I don't know which distributors ship to ukraine, since I don't live there or work from one that does
[14:27:17] <cyanide> cheaper xmegas are around 5 for 1
[14:27:26] <Xata> well, this is a long-term. first will be arduino
[14:27:49] <cyanide> why did you go with a 2560?
[14:28:14] <cyanide> i ask because by the time you run out of mem/space on the smaller arduinos, you will want a better mcu altogether
[14:28:17] <cyanide> like the xmega
[14:28:19] <theBear> hmm... dual channel dac eh ? that's pretty cool... i used to play with BASIC synthesis on 'old' avrs, and well, it sometimes got a bit tricky juggling pwm and lookup tables and rates and stuff
[14:28:46] <Kevin`> cyanide: no reason not to get a big chip for prototyping. it'll work for any future project too
[14:28:51] <Kevin`> who cares if you only use 2kb flash
[14:29:04] <cyanide> sure
[14:29:18] <cyanide> but the bigger ones cost about double
[14:29:21] <cyanide> thats it
[14:29:50] <dirty_d> cyanide, any progress?
[14:29:52] <Kevin`> so? once you build copies of the device, you can switch to a chip that has the minimum extra hardware
[14:30:02] <cyanide> dirty_d, yes
[14:30:18] <cyanide> ive started to write some code
[14:30:24] <cyanide> the board is about done
[14:30:40] <Xata> cyanide: because, for example, i can not find _any_ shop in ukraine to buy xmega, at least at cur. time
[14:30:45] <dirty_d> oh you had to assemble it?
[14:31:07] <Kevin`> Xata: which of the major electronics suppliers will ship to you?
[14:31:23] <cyanide> no, the board design i mean
[14:31:30] <dirty_d> cyanide, oh ok
[14:31:39] <cyanide> i have almost all the components required to build them. just need a couple of xmegas and the boards
[14:31:48] <cyanide> here's the board http://i.imgur.com/5KIhJ.jpg
[14:32:08] <cyanide> will run off the car battery. and usb when connected to pc
[14:32:12] <Xata> Kevin`: i do not understand your message, sorry, english is not my native, and sometimes i get stuck
[14:32:15] <dirty_d> cyanide, nice
[14:32:28] <dirty_d> cyanide, how hard do you think the PID will be?
[14:32:34] <dirty_d> traction control seems tricky
[14:32:38] <dirty_d> it isnt exactly gradual
[14:32:38] <Xata> Kevin`: you mean where do i buy electronic components?
[14:33:16] <Xata> or where i am going to buy arduino from?
[14:33:23] <dirty_d> Xata, where will you buy online
[14:33:27] <Kevin`> Xata: places like farnell or mouser. who is available for your area (multiple will be, so cheapest shipping is what you are looking for)
[14:33:33] <cyanide> it'll be pretty gradual on mine. ill just be retarding ignition in 0.5 degree increments
[14:33:54] <cyanide> even a 1.5 degree retard should be quite enough to reduce power enough to get traction back
[14:34:00] <cyanide> or atleast not have the inside wheel spinning
[14:34:08] <cyanide> will be using a limited slip diff
[14:34:24] <dirty_d> cyanide, well i mean not gradual as in the wheels have 0 slip then with a tiny amount more torque they will start slipping very rapidly
[14:35:05] <cyanide> ill just have to control throttle inputs
[14:35:05] <dirty_d> so i think it willl be hard to balance on that line of the max torque possible without slipping
[14:35:26] <cyanide> i could've gone with an electronic throttle control, but perhaps later
[14:35:26] <Kevin`> should be fun
[14:36:11] <cyanide> my engine will be one of the most powerful in the field. so im not really worried about a little loss of traction during corner exit
[14:36:12] <Xata> Kevin`: there is no my country neither in mouser nor in farnell
[14:36:30] <cyanide> the previous engine i built is still being raped on the tracks and we broke the national record with that one
[14:36:36] <dirty_d> cool
[14:37:59] <dirty_d> an accelerometer might help somewhat
[14:38:17] <dirty_d> at least then you could tell approximately how much torque is on the wheels
[14:38:26] <dirty_d> to sorta be able to predict when they will slip
[14:38:52] <Xata> i buy arduino online from shop in another city, and everything else in local shop, that has some old avrs, but not xmega
[14:39:09] <dirty_d> Xata, you cant order from farnell?
[14:39:34] <Xata> dirty_d: maybe i can but delivery will cost 5 times more than chip itself
[14:39:43] <dirty_d> hmm
[14:40:42] <Xata> this could be ok for massive order with other interested people, but i don't thik i will find even 3 of them.
[14:40:44] <cyanide> dont know how sensitive it would be
[14:41:38] <Xata> so yes, arduino now, and maybe later xmega, if it will come here, or there will be a way to but one maximum for twice price
[14:41:55] <Xata> *buy
[14:43:07] <dirty_d> cyanide, i may model a physics simulation for this since im interested too
[14:43:23] <dirty_d> and try various pid algorithms until something works
[14:43:38] <cyanide> nice
[14:43:45] <dirty_d> thats what i did with my quadcopter
[14:43:52] <dirty_d> so hopefully it should fly the first try
[14:44:18] <cyanide> :)
[14:44:23] <cyanide> how did it go?
[14:44:39] <dirty_d> i havent built it yet, but the simulation works very good
[14:45:00] <dirty_d> it simulates pretty much everything
[14:45:32] <dirty_d> motor electrical and inertial characteristics, propeller dynamics
[14:45:44] <dirty_d> quantization error in the ESCs
[14:45:52] <dirty_d> wind, vibration
[14:46:05] <cyanide> what software do you use?
[14:46:07] <dirty_d> the gyro and accelerometer
[14:46:23] <Xata> you know what? i am a liar. found xmega256a3-au in local online shop for 10$
[14:46:28] <dirty_d> i used part of a game engine i wrote in c++
[14:46:36] <dirty_d> the physics part
[14:46:44] <cyanide> oh, wow
[14:46:49] <cyanide> cool
[14:47:02] <dirty_d> yea came in really handy for crazy projects like this, lol
[14:47:47] <dirty_d> simulating a wheel on a traction surface should be pretty easy
[14:47:54] <cyanide> lol
[14:48:06] <dirty_d> id just need like a friction curve
[14:48:17] <dirty_d> friction vs slip velocity or something
[14:49:13] <dirty_d> it sounds like world war III in one of the cubicles around me
[14:49:51] <Xata> hmm... but still i will need programmer and a guy that will place this smd on special pcb to use in non-smd. anyway thanks for all for your advices.
[14:50:13] <dirty_d> Xata, try making your own, its not too hard
[14:50:42] <cyanide> soldering smd stuff is fun
[14:50:57] <dirty_d> Xata, you will need a printer, photosensitive pcb, hydrochloric acid, sodium hydroxide, and hydrogen peroxide.
[14:51:00] <dirty_d> yea i like smd
[14:51:09] <dirty_d> Xata, and a UV light source
[14:51:13] <cyanide> lol.
[14:51:22] <cyanide> ive never done etching
[14:51:39] <dirty_d> i ave a photo etching setup
[14:51:44] <dirty_d> it works really good
[14:51:47] <dirty_d> way better than toner
[14:51:58] <dirty_d> but i dont feel like doing it anymore, lol
[14:52:10] <dirty_d> i just ordered boards online from dorkbotpdx
[14:52:15] <dirty_d> ill try capnkernel next
[14:52:28] <dirty_d> id just make my own if its single sided
[14:52:53] <dirty_d> vias and shit would be too much of a hassle i think
[14:54:15] <Xata> dirty_d: programmer? i will do one day, but first i have to get some knowledge using arduino, i think. starting from such stuff, especially so beautifull and hated smd-soldering - too much for me, specially when you don't have too much money for this.
[14:54:28] <dirty_d> true
[14:58:56] <Steffanx> test123
[15:00:37] <CapnKernel> dirty_d: hi
[15:01:00] <dirty_d> CapnKernel, hey
[15:01:03] * CapnKernel alone knows who testuser123 is :-)
[15:01:38] <testuser123> hello
[15:02:20] <OndraSter> heya
[15:02:24] <OndraSter> I need some 3.3V regulators
[15:02:25] <OndraSter> few amps
[15:02:26] <OndraSter> any tips?
[15:02:42] <cyanide> how many amps?
[15:02:55] <OndraSter> 2 - 3, I can put always two in series...
[15:03:23] <Kevin`> OndraSter: at high current like that you should use switching regulators if possible. unless you happen to have a large heatsink/case you can bolt or solder them to as part of your design already
[15:03:44] <OndraSter> Kevin`, two TPS54527 (not cheap) SMPS regulators just blew up...
[15:04:04] <dirty_d> cyanide, would you say wheel traction would be proportional to something like 1 - x^2 where x is the velocity of wheel slip?
[15:04:53] <cyanide> i wouldn't know that, sorry :)
[15:05:30] <specing> OndraSter: karma.
[15:05:37] <OndraSter> doubt it
[15:06:21] <specing> 2/2, karma.
[15:07:20] <OndraSter> funny thing, I just run out of spare ones
[15:07:23] <OndraSter> well I have spare
[15:07:25] <OndraSter> but I need them.
[15:07:37] <OndraSter> plus they are bugged
[15:07:41] <dirty_d> http://i24.tinypic.com/2h7pfn4.gif
[15:07:44] <dirty_d> that looks like it makes sense
[15:07:59] <specing> CapnKernel: Ohey
[15:08:20] <OndraSter> I've had here some 3,3V LM1085s...
[15:08:27] <OndraSter> like five or so
[15:09:00] <Kevin`> some of those don't mind sitting in parallel
[15:09:09] <Kevin`> but still, lots of heat to get rid of
[15:09:57] <cyanide> CapnKernel, what are your plans if the chinese visa doesn't work out?
[15:10:47] <OndraSter> hah I have better solution
[15:10:49] <OndraSter> use 18650 battery
[15:10:53] <OndraSter> 3,7V nominal :)
[15:11:00] <OndraSter> or 4V or w/e
[15:11:08] <specing> 18650?
[15:11:09] <OndraSter> charge and use
[15:11:10] <OndraSter> yeah
[15:11:38] <CapnKernel> Xata: google for "simavr"
[15:12:01] <Kevin`> is that better than atmel's?
[15:12:26] <Steffanx> Atmel and linux ..
[15:12:31] <mog> i <3 simavr
[15:12:47] <Kevin`> Steffanx: sure, i'd use the linux stuff, but most people don't for some reason =p
[15:13:19] <Steffanx> Yes, but most of Atmels tools are windows only
[15:13:23] <Steffanx> So is their simulator ..
[15:13:50] <Steffanx> So, yes simavr is better
[15:13:53] <Kevin`> right. that's fine for most people, if it we would be unlikely to use it
[15:13:55] <Steffanx> It's sort of linux only :P
[15:15:10] <Steffanx> And mac ofcourse
[15:17:35] <CapnKernel> cyanide: Go home, and work on my PCB ordering website.
[15:17:44] <CapnKernel> Then change my passport
[15:17:52] <CapnKernel> And hope China doesn't realise.
[15:18:03] <CapnKernel> (My friend tells me this is what his two-black-marks friends do)
[15:18:25] <theBear> two black marks as in, if china ever see him again he gets a third and disappears ?
[15:18:54] <CapnKernel> No, they can just say "no visa for you"
[15:18:57] <Steffanx> Change your passport CapnKernel ?
[15:19:07] <Steffanx> Incl. name etc.
[15:19:12] <CapnKernel> Yes, get a new one with a different number
[15:21:04] <Steffanx> The Chinese aren't that stupid.. are they?
[15:21:24] <Kevin`> why would they care
[15:21:48] <Kevin`> it was careless mixups that caused the problem in the first place
[15:24:43] <cyanide> lol
[15:24:50] <cyanide> that's the spirit
[15:29:01] <Steffanx> CapnKernel is responsible :P
[15:30:12] <CapnKernel> The first black mark (an overstay of two days), was last year, and was my fault.
[15:30:46] <CapnKernel> The second black mark (two day overstay) wasn't my fault. The police station wrote the wrong final date, and I stupidly believed it.
[15:31:15] <Steffanx> So, your fault
[15:31:39] <dirty_d> cyanide, i cant find any numbers that make sense for tire friction, I'm seeing 0.9 for static and 0.8 for dynamic
[15:31:41] <Kevin`> Steffanx: right, so now it's his responsibility to cheat the government into letting him back in
[15:31:50] <Steffanx> Yes, that too
[15:31:56] <dirty_d> you have way less than half the traction while doing a burnout
[15:31:57] <dirty_d> lol
[15:32:01] <Kevin`> it's not like they are going to cheat themselves
[15:33:44] <Kevin`> seriously though, personal responsibility does not extend to either of insane governments or bureaucracy
[15:35:45] <Steffanx> Rules are rules :P
[15:36:57] <theBear> and don't even THINK about arguing with chinese cops or immigration staff :)
[15:38:05] <Kevin`> Steffanx: right, and the proper responses to insane ones are revolt or avoidance
[15:38:37] <Kevin`> (avoidance being more realistic for most people)
[15:42:37] <CapnKernel> One option (really hope I don't have to do this) is to go to Taiwan instead of China.
[15:44:27] <cyanide> lol
[15:44:44] <cyanide> im putting my tdocu stuff (board name, etc) on copper layer :)
[15:45:01] <abcminiuser> Holy crap, AVR-GCC seems to just flat out ignore alignments
[15:45:09] <abcminiuser> #if (__BIGGEST_ALIGNMENT__ == 1)
[15:45:10] <abcminiuser> #error DERP
[15:45:10] <abcminiuser> #endif
[15:45:28] <CapnKernel> cyanide: I heard with trains, the power controllers try to keep the slip at between 5-10%, because if they do 0% slip, acceleration takes forever :-)
[15:45:33] <CapnKernel> That's steel on steel though
[15:46:09] <cyanide> cant have 0% slip, yeah
[15:46:40] <cyanide> however, having the inside wheel spinning like mad up destroys tyres pretty quickly
[15:46:54] <cyanide> i think i'll know best once i have the system working
[15:47:32] <cyanide> although, we're getting track-spec slicks this year. so traction shouldn't be that big of an issue
[15:47:59] <cyanide> this system will be useful for the guys in the us in the street classes where road-legal tyres are required
[15:49:14] <cyanide> can't wait for the weekend. f1 is back
[15:49:53] <CapnKernel> cyanide: You're such a car nut :-)
[15:53:00] <cyanide> :)
[15:53:55] <theBear> better than a wheel nut or a wall nut.... OOOH that was terrible and in poor taste :)
[15:54:06] <cyanide> hahaha
[15:55:54] <OndraSter> switch to battery:
[15:55:59] <OndraSter> desolder half of the power board.
[15:56:10] <OndraSter> grab 18650 holder in local shop: impossible
[15:56:12] <OndraSter> NONE TO BE FOUND!
[15:56:27] <Kevin`> OndraSter: are you sure the battery you are looking at can handle that high discharge rate? some can, some can't
[15:56:27] <OndraSter> oh well, I have one 2x 18650 holder here that I tweaked
[15:56:39] <Kevin`> also, why use a battery when it will only last for a few minutes
[15:56:42] <OndraSter> I am now doing like 20% brightness
[15:56:49] <OndraSter> because few minutes = enough for presentation
[15:56:54] <OndraSter> I totally fucked up power supply part
[15:56:59] <OndraSter> and I don't have the time to fix it
[16:02:21] <OndraSter> yes, finally I have two segments working
[16:03:16] <OndraSter> and I dont have to think about (not) floating power supplies and what not
[16:03:24] <OndraSter> just connect USB cable and click switch
[16:03:42] <OndraSter> (or I could add relay to auto powerup the display as well)
[16:07:18] <OndraSter> https://skydrive.live.com/redir.aspx?cid=40bf7833586103ab&resid=40BF7833586103AB!455&parid=40BF7833586103AB!111&authkey=!AOTU0vShzt4G1Qg
[16:39:06] <OndraSter> CapnKernel,
[16:39:09] <OndraSter> how much would be...
[16:39:13] <OndraSter> 921600 LEDs?
[16:39:20] <OndraSter> 921600x red green and blue :P
[16:39:26] <OndraSter> ergo 3M LEDs LOL
[16:39:29] <OndraSter> I wanna do 720p wall
[16:39:35] <OndraSter> SMD that would be
[16:39:53] <OndraSter> plus drivers for it
[16:39:57] <OndraSter> that can do PWM brightness :P
[16:39:58] <asteve> how much is 3 million pennies?
[16:40:03] <OndraSter> heh
[16:40:11] <OndraSter> I thoguth you can get fairly low prices with these amounts
[16:40:26] <asteve> i can't see it costing less than a penny
[16:40:37] <OndraSter> even for 1M of LEDs?
[16:41:15] <asteve> well your screen was made with them at manufacturing cost
[16:42:18] <OndraSter> hmm
[16:44:12] <asteve> it will probably cost you more in construction costs than leds and drivers combined
[16:44:46] <jd_ce> this^
[16:44:58] <OndraSter> hmmm
[16:46:23] <jd_ce> my bud made a scrolling marquee using leds and shift registers. funny thing happened though... as it scrolls the text looks slanted almost because of the accumulated gate delay through the shift registers
[16:47:15] <theBear> heh nice, just like the real ones :)
[16:47:33] <asteve> shift slower
[16:47:36] <jd_ce> hah how true
[16:48:34] <CapnKernel> That's why you have to shift and latch
[16:48:55] <asteve> http://www.ebay.com/itm/150000x-5mm-White-12000mcd-Super-Bright-Water-Clear-LED-/180739950613?pt=LH_DefaultDomain_0&hash=item2a14f0c815#ht_3069wt_1180
[16:49:10] <jd_ce> holy hell
[16:49:28] <jd_ce> 3 cents a piece?
[16:49:29] <jd_ce> ripoff
[16:49:30] <jd_ce> :D
[16:49:39] <OndraSter> haha
[16:49:40] <asteve> 12000 mcd
[16:50:00] <OndraSter> china 12cd!
[16:50:13] <asteve> http://www.ebay.com/itm/10000-pcs-5mm-RGB-LED-4000mcd-Common-Cathode-Free-R-/150471435789?pt=LH_DefaultDomain_0&hash=item2308cbe60d#ht_1650wt_922
[16:50:30] <CapnKernel> LOL, free international shipping
[16:50:31] <asteve> i've had blue burn out on two of my RGBs
[16:50:46] <asteve> it's such a pain in the ass
[16:50:58] <Kevin`> why would buy such a large number of devices from ebay from an unstated supplier
[16:51:12] <OndraSter> RGB LEDs
[16:51:13] <Kevin`> you could order that directly from the factory and have it hand delivered by the pope etc
[16:51:13] <OndraSter> sounds cool
[16:51:15] <jd_ce> if I was rich I'd buy 10 for the lulz
[16:51:16] <OndraSter> 10k pieces
[16:51:23] <OndraSter> lol
[16:51:47] <OndraSter> I've never understood why those self flashing RGB LEDs are cheaper than raw common anode/cathode 4pin ones :(
[16:52:05] <OndraSter> srsly, there is some flip flop inside and it is cheaper
[16:52:22] <OndraSter> transistor inside LED is cheaper than 2 metal pins
[16:52:22] <OndraSter> oh well
[16:53:31] * CapnKernel buys LEDs by the reel
[16:53:37] <OndraSter> :-)
[16:53:40] <CapnKernel> 3000 LEDs in a reel
[16:53:42] <OndraSter> how much is reel of RGB LEDs?
[16:53:54] <OndraSter> or reel of regular red/green/blue LEDs?
[16:53:57] <OndraSter> 0603/0805
[16:54:22] <OndraSter> (btw there is nothing better than soldering few hundreds of pins to find out you flipped them... LOL)
[16:54:33] <OndraSter> friend of mine many years ago soldered about 200 LEDs on one board
[16:54:44] <OndraSter> to find out he switched anodes with cathodes.
[16:54:52] <jd_ce> lol
[16:55:03] <jd_ce> poor guy
[16:55:07] <OndraSter> yeah
[16:55:52] <vectory> he coulda just changed the firmware, and put the shift registers at the other end, right?
[16:56:06] <OndraSter> duh?
[16:56:16] <OndraSter> when the shift registers sink, they sink
[16:57:00] <OndraSter> hmm tomorrow 14C
[16:57:04] <OndraSter> I should go find some shorts
[16:57:04] <asteve> send the current to dave jones locker, men!!!
[16:57:08] <OndraSter> :D
[16:57:09] <asteve> davie*
[16:57:32] <asteve> read what i just wrote in the voice of the bad guy from the first pirates of the caribbean
[16:57:56] <asteve> 14C it's near 25C here right now
[16:58:02] <OndraSter> heh
[16:58:29] <asteve> i took a random guess on the conversion between F and C and got it right
[17:00:49] <OndraSter> ah so you are from the imperialistic world
[17:00:59] <OndraSter> imperialic world*
[17:01:21] <asteve> right near the beach, boooooyyy-ee
[17:01:42] <OndraSter> heh
[17:01:53] <OndraSter> even Australia uses metric units
[17:01:54] <OndraSter> and C
[17:01:56] <OndraSter> (I hope)
[17:03:03] <jd_ce> actually they use the upside down C
[17:03:10] <OndraSter> duh?
[17:03:23] <asteve> when you hear beach you think australia? you haven't seen Half Baked
[17:03:37] <OndraSter> no, not beach in australia
[17:03:41] <OndraSter> I heard they have some nasty insects there
[17:03:46] <OndraSter> but I want to move to aus.
[17:03:56] <OndraSter> I prefer hot rather cold :P
[17:04:02] <OndraSter> but I hate spiders :/
[17:04:07] <OndraSter> New Zealand maybe?
[17:04:13] <asteve> fascinating news, i would like to go home but have to wait 6 minutes until the little hand strikes the big one two
[17:04:13] <OndraSter> do they still have there that Smoke?
[17:06:04] <OndraSter> I am glad those TPS54527 were samples
[17:06:11] <OndraSter> I'd be crying now if I burnt bought ones
[17:06:15] <OndraSter> $8/piece
[17:10:56] <CapnKernel> The only place you'll find Australian using Imperialist measurements is in pr0no movies
[17:13:25] <vectory> how so? that is sells better in 'murica?
[17:19:25] <cyanide> a 7 inch cock sounds bigger than a 177 cm cock
[17:20:19] <CapnKernel> cyanide: hole in one :-)
[17:20:32] <theBear> rofl
[17:20:47] <theBear> we use em for height too
[17:20:53] <theBear> at least the sensible among us
[17:21:17] <theBear> i'm somewhere between about 5'11 and a bit or minus a bit, depending how my back feels
[17:21:49] <theBear> and i'm 6' tall <grin> nah, but 7" pfft, that's childs play, human dimensions <grin>
[17:22:55] <DrLuke> hi guys, a 10k pullup on the reset pin shouldn't interfere with an ISP, right?
[17:23:06] <CapnKernel> DrLuke: no
[17:23:34] <CapnKernel> I'm 1/4" short of 6 foot. God, why did you cheat me so?
[17:24:12] <cyanide> im 6'1"
[17:24:15] <cyanide> hah
[17:25:43] <theBear> heh, neither of those things make me feel bad, cos i'm long in 2 directions <grin> yeahk, i'll get my mind out of the gutter now, but seriously, i scare people <biggrin>
[17:26:34] <vectory> CapnKernel: me, too. it isnt that bad, is it? not smaller than most woman, right?
[17:26:58] <theBear> hmm.... i haven't met an abnormally tall woman for ages :(
[17:27:39] <cyanide> my wife is a foot shorter than me
[17:28:59] <vectory> CapnKernel: especially in asia :DDD
[17:29:06] <vectory> damn stereotypes >_<
[17:33:50] <CapnKernel> If I can't get back into China, I will go home. It will be good to see my wife and kids.
[17:34:23] <OndraSter> hmm
[17:34:36] <OndraSter> 170 centimeters = 5.57742782 feet (5 feet 659⁄64 inches)
[17:34:40] <OndraSter> there you go
[17:34:43] <OndraSter> that's ne
[17:34:44] <OndraSter> me
[17:34:52] <theBear> totally, car ones, boomboxes from the 80's, clockradios, the list goes on
[17:35:05] <OndraSter> 5 ft 7 inch
[17:36:17] <OndraSter> americans do not probably realize enough that imperial units JUST SUCK
[17:36:27] <OndraSter> you can't say 5.57 ft
[17:36:32] <OndraSter> you have to say 5ft 7inch
[17:36:43] <OndraSter> because .57 ft != 5.7 or 57 inch
[17:36:48] <OndraSter> BECAUSE 10 IS NOT THE BASE UNIT
[17:36:50] <OndraSter> bollocks.
[17:37:13] <OndraSter> wasn't there some US president that tried change to metric? :P
[17:37:50] <testuser123> what is a base host port?
[17:37:51] <theBear> then they go using a term like mil to mean thousandth of a 25.4 or so mm unit, crazy seppos
[17:37:57] <testuser123> i am trying to configure my router
[17:41:34] <testuser123> nevermind
[17:41:51] <OndraSter> bb
[18:02:29] <cyanide> some stupid math up there
[18:02:36] <cyanide> 7 inch or 177 mm
[18:02:48] <cyanide> a 177 cm dick would be scary
[18:03:06] <CapnKernel> The previous US president doesn't count?
[18:03:41] <cyanide> vice president, perhaps
[18:03:55] <cyanide> the president was an ancillary device next to the tool
[18:04:04] <cyanide> "bush"
[18:04:07] <CapnKernel> LOL
[18:10:57] <cyanide> http://www.youtube.com/watch?v=BtSv3x6lh3o skip to 7:08
[18:18:28] <Tom_itx> it was Carter
[18:18:37] <Tom_itx> the peanut farmer
[18:18:54] <Tom_itx> nobody else would be silly enough to try
[18:33:26] <NTQ> Hi. It is possible to pass DDRx and PORTx as parameters to a function? I want do something like this: void function(volatile uint8_t * &DDR, volatile uint8_t * &PORT) { DRR |= ...; }
[18:34:20] <grummund> http://www.nongnu.org/avr-libc/user-manual/FAQ.html#faq_port_pass
[18:36:03] <NTQ> grummund: cool. thank you for the link to the faq.
[18:36:27] <grummund> welcome ;)
[18:42:16] <NTQ> But is not possible to use DDR as a template parameter, because it is not a constant value, isn't it?
[18:44:19] <Tom_itx> &DDRB ends up being an address defined in the part header file
[18:44:41] <grummund> without the & it does
[18:45:24] <grummund> NTQ: you can handle DDRx in exactly the same way as PORTx
[18:45:31] <NTQ> hm. okay. but which type do I use for the template parameter? Also volatile uint8_t *?
[18:45:39] <NTQ> Yes, I know
[18:46:14] <grummund> yep
[18:48:44] <NTQ> In fact I want to create a class with 7 template parameters. DDR, PORT and 4 PIN numbers. The following line is the template and then the call from the main method:
[18:48:44] <NTQ> template <volatile uint8_t * DDR, volatile uint8_t * PORT, uint8_t SCLK, uint8_t SYNC, uint8_t SDIN, uint8_t LDAC, uint8_t CLR>
[18:48:44] <NTQ> AD5754<&DDRA, &PORTA, PA0, PA1, PA2, PA3, PA4> ad();
[18:48:44] <NTQ> But the I get this error from the compiler: main.cpp: Error: Wrong template argument count (1, should be 7)
[18:49:32] <NTQ> My compiler writes the errors in german. I tried to translate the output to english.
[18:49:59] <grummund> ah, C++.
[18:50:47] <NTQ> ehm, yes ;)
[19:08:27] <NTQ> grummund: any suggestions? ;)
[19:12:42] <grummund> ask in ##C++ ?
[19:13:18] <NTQ> I bet they don't the AVR library internals. ;)
[19:13:35] <grummund> it's not AVR specific
[19:14:02] <grummund> can you write the C function prototype for what you want?
[19:19:03] <NTQ> I learned from the ##C++ channel that volatile is not a part of types, so it cannot be used as a template parameter.
[19:20:52] <SianaGearz> wha???
[19:22:08] <SianaGearz> oh volatile is a storage class qualifier...
[19:23:39] <SianaGearz> though i don't understand. if const template params are OK, why not volatile -.-
[19:35:12] <NTQ> template parameter always are constant. they cannot change while the programm is running.
[19:35:22] <NTQ> I think that's the point
[20:14:15] <Sgt_Lemming> heh, just designed a PCB for someone... it's 13mm x 14mm and has an AVR on it :-P
[20:36:25] <SianaGearz> ah, i confused things. hey can a pointer be a template instatiation param at all? because the pointer isn't known until run-time, or at least might not be known.
[20:37:02] <SianaGearz> what guarantees that it's a constant?
[20:41:20] <Tom_itx> Sgt_Lemming, that could be a no brainer if it's a tiny10 :)
[20:41:29] <Sgt_Lemming> heh
[20:42:38] <zii> Do the USB ASP progreammers have a configuration?
[20:43:01] <Tom_itx> zii, what do you mean?
[20:47:11] <zii> well the loader(avrdude) didn't respond, then the teacher gave it with the chip to some smarter guy, and suddenly without changing of wiring or anything it started working on my box for a while. But now I did something and I get this error again.
[20:47:43] <zii> Wait, nevrmind.
[20:48:16] <zii> But still is there anything to configure?
[20:48:38] <Tom_itx> each specific programmer is in the avrdude.conf
[20:48:42] <Tom_itx> iirc
[20:49:29] <zii> can avrdud be run only with root?
[20:49:37] <dirty_d> yup
[20:49:51] <zii> Meh.
[20:49:55] <dirty_d> unless you setup udev to give all user access to the device
[20:50:12] <zii> I'll sudo then.
[20:50:50] <Tom_itx> the device list is in the dude pdf if you're not sure which one to select
[20:51:16] <dirty_d> zii or add users to the uucp group
[20:51:31] <dirty_d> serial devices are in that group on my syatem