#avr | Logs for 2012-09-07

Back
[00:08:10] <Microboter> Casper I have used them. not bad, i think i got 1 bad out of 12, ordered 10
[00:08:50] <Microboter> had micro vias and i was happy overall
[00:15:35] <Casper> ok
[00:15:53] <Casper> I'm planning to make a board with d2pak and ssop
[00:16:35] <Microboter> I have a pic of the board kinda crappy but can link it if you want
[00:22:23] * Essobi stabs his AVR.
[00:22:40] <w|zzy> Its not that bad
[00:24:20] <RikusW> Essobi: whats wrong with it ?
[00:24:30] <RikusW> or you.... ;)
[00:28:28] <Essobi> Meh.
[00:28:43] <Essobi> Tying to get SPI working without a scope/signal analyzer is painful
[00:28:48] <Essobi> *trying
[00:29:19] <Essobi> RikusW: Idea was to get 328P to use the same SPI ports, I'm programming them with. :D
[00:29:56] <RikusW> and communicating via the RPi ?
[00:30:23] <Essobi> yessir.
[00:30:41] <Essobi> I've wrote near as what I can tell is a loopback...
[00:30:43] <RikusW> if you want to send stuff on the slave interface (AVR) the master must transmit for it to be read
[00:30:58] <Essobi> Right.. RPI is sending as master
[00:31:20] <RikusW> you'll probably want the transmit part in an irq ?
[00:31:30] <Essobi> it reads nothing back from the 328p thou. and 328P doesn't appear to be landing in the ISR.
[00:31:40] <RikusW> ugh
[00:31:49] <RikusW> did you enable irqs ?
[00:32:04] <RikusW> sei and spi rx ?
[00:32:06] <Casper> Microboter: what was bad on it?
[00:32:23] <Microboter> Casper my photography :)
[00:32:40] <Casper> lol
[00:32:58] <Microboter> http://tomanyhobbies.com/coppermine/displayimage.php?album=lastup&cat=0&pid=275#top_display_media
[00:33:16] <Microboter> click to get a zoomed view
[00:34:20] <RikusW> Microboter: why solder a pinhader to a ribbon cable ?!
[00:34:31] <RikusW> there is nice push on connectors available
[00:34:44] <RikusW> like IDE used in PCs
[00:35:01] <RikusW> its much faster
[00:35:07] <Microboter> sometimes we use what is in our junk boxes :)
[00:35:27] <RikusW> hmmm
[00:35:50] <RikusW> its neater too, and less likely to break the wires
[00:36:06] <RikusW> soldered wires like that tend to break
[00:37:20] <Casper> nite
[00:37:21] <Microboter> the final version doesnt look like that :) just wanted to get something working over the weekend
[00:37:43] <RikusW> ah
[00:38:02] <Essobi> RikusW: yup.. here.. I'll pb the code..
[00:40:17] <jadew> how would you go about identifying an RX pin from a header, on a board you know nothing about
[00:40:27] <jadew> I only managed to identify ground and TX
[00:40:52] <jadew> but I'm sure it has RX as well, it's running some sort of linux
[00:41:21] <w|zzy> What does EMS stand for?
[00:41:48] <jadew> email management system comes to mind
[00:41:57] <Essobi> RikusW: http://paste.debian.net/188382/
[00:42:08] <Essobi> RikusW: It doesn't appear to be landing in the ISR ever..
[00:43:00] <Essobi> w|zzy: Emergency Medical Services, too.
[00:43:05] <Essobi> Depends on your context.
[00:43:18] <w|zzy> Yeah..
[00:43:26] <w|zzy> Whatis Microboter's context
[00:43:57] <Microboter> I am guessing he is looking at a pic on my site. Energy Management System
[00:44:54] <w|zzy> For?
[00:45:00] <w|zzy> And I am
[00:47:24] <Essobi> estalk much? There I said, what everyone was thinking.
[00:47:34] <Microboter> It was a custom design. 64 nodes that monitored temp and had adjustable control from a central location
[00:48:38] <Essobi> Microboter: neat.. vent control?
[00:49:14] <Essobi> Microboter: playing with the idea of a zoning system.
[00:49:21] <Microboter> hvac control
[00:49:25] <w|zzy> very cool
[00:49:57] <w|zzy> essobi... you all do it, I just have the balls to ask when I see something of interest
[00:50:20] <Microboter> hehe
[00:50:22] <Essobi> w|zzy: just f'ing with you.
[00:50:32] <Essobi> <-- S.O.B.
[00:55:38] <w|zzy> what a coincidence
[00:56:12] <Microboter> Essobi the hardest part of the design was getting the 485 data flowing and at the same time sampling the slow ass DS18B20
[00:57:01] <Microboter> if i had to do it again i would go with the lm34/35 and adc it
[00:59:22] <RikusW> Essobi: seems you didn't enable the spi irq ?
[01:01:18] <Essobi> Microboter: ah.. i've got a bunch of bare 328p and some rpi's I'm going to string up on RS-485 and ethernet.
[01:01:41] <RikusW> SPCR |= (1<<SPIE) | (1<<SPE);
[01:01:52] <Essobi> RikusW: I didn't? FFFFFFF..
[01:02:16] <w|zzy> :-)
[01:02:37] <RikusW> and the clock is irrelevant in slave mode...
[01:02:50] <Essobi> Sure enough... I didn't.
[01:02:55] <Essobi> RikusW: Oh?
[01:03:08] <Essobi> because it's timed form the master... good point
[01:03:15] <RikusW> master determines that
[01:03:32] <RikusW> working now ? :-P
[01:03:40] <Essobi> flashing
[01:04:20] <RikusW> I usually add data++; to make sure there is no electrical loopback..
[01:05:14] <Essobi> RikusW: Ah.
[01:08:25] <Essobi> RikusW: Hmm.. yea.. C0 still doesn't clear.
[01:09:37] <Essobi> Meh.
[01:09:40] <Essobi> I need sleep.
[01:09:43] <Essobi> thanks for the help.
[01:09:49] <Essobi> I think I'll scope this out.
[01:13:19] <RikusW> good luck
[01:13:35] * RikusW edited wikipedia -> http://en.wikipedia.org/wiki/DebugWIRE
[01:16:33] <w|zzy> my open logic analyserabsolutely priceless
[01:16:48] <budved> The topic of this article may not meet Wikipedia's general notability guideline.
[01:22:02] <RikusW> I put in the bottom paragraph
[01:22:13] <RikusW> and slightly edited the top one
[01:22:35] <RikusW> will be unfortunate if its deleted :-/
[01:22:38] <budved> time to rate it up
[01:22:49] <RikusW> :)
[01:22:50] <budved> 'this article saved the lives of my children'
[01:28:40] <mbertens> i have serial routines interrupt driven, but when i control some port (PORTA and PORTC) i got some gargoyled characters in my serial stream, then UART pins are completely separated i use a m640, anyone knowns how to prevent this ?
[01:31:35] <mbertens> RikusW: it is the characters that get corrupted, not the AVR code, i have the code in a loop en every time on the same spots there is character corruption
[01:33:56] <Thetawaves> do all your manipulations of the port use |= and &=?
[01:34:15] <mbertens> yes
[01:34:46] <mbertens> its the ports to the gLCD that is creating the corroption
[01:34:55] <Thetawaves> you should not have this problem then, i control ios on the same port as the serial port
[01:36:30] <RikusW> Thetawaves: you could use = too
[01:36:50] <mbertens> yeah, but i have
[01:37:52] <RikusW> sounds weird
[01:38:00] <RikusW> it shouldn't happen
[01:38:11] <RikusW> paste the code ?
[01:38:55] <RikusW> on which serial line is that ? AVR TX ?
[01:39:24] <RikusW> now here is something electronics related -> http://en.wikipedia.org/wiki/Electrocardiography
[01:39:51] <budved> oh man I got one of those tests done to me by a creepy chinese nurse once
[01:40:02] <budved> but my package is nowhere near as big as the guy in the diagram
[01:40:58] <mbertens> http://pastebin.com/PR2vBxjp
[01:41:07] <mbertens> here is the output
[01:41:24] <RikusW> what language is that ?
[01:42:23] <RikusW> err, and the actual code ?
[01:42:25] <mbertens> http://pastebin.com/YNZ4wGFc
[01:42:33] <mbertens> and here is the main code
[01:42:52] <mbertens> The code is in C
[01:43:31] <RikusW> you're German ?
[01:43:41] <mbertens> No Dutch
[01:43:51] <mbertens> this is the serial code http://pastebin.com/ijEY6YDc
[01:44:40] <mbertens> the gLCD driver code http://pastebin.com/6QeD8dkP
[01:45:24] <mbertens> the gLCD control code http://pastebin.com/Hdd4GdRC
[01:45:47] <mbertens> thats all
[01:46:42] <mbertens> the UART is #1
[01:46:48] <Thetawaves> your uart is on portc?
[01:47:17] <mbertens> no separated the mcu is m640
[01:49:42] <RikusW> seems you're not checking UDRE ready ?
[01:50:03] <RikusW> I'd write simple polled code just to get it working
[01:50:17] <RikusW> with a blocking tx funtion
[01:50:22] <mbertens> this is interrupot driven
[01:50:27] <RikusW> then start adding features
[01:50:34] <mbertens> for both RX as TX
[01:52:11] <RikusW> does the blocking version work ?
[01:52:30] <mbertens> i'll try
[01:53:39] <budved> hey RikusW, could I bother you with a question too? I have a super simple circuit that is behaving in a way i don't understand. I only have basic electronics knowledge so it could be a stupid mistake, but I'm not sure what's going on exactly...
[01:53:41] <mbertens> that one does'nt send any data
[01:54:30] <budved> I've made a schematic here: http://i.imgur.com/8wvIS.png, basically what the problem is, is that if my atmega328p and MAX232 are both connected to the circuit at the same time, the LED that is connected to the IR receiver (the unnamed box in the middle the diagram) goes solid red
[01:54:54] <budved> but if i disconnect either the MAX232 or the atmega328p, then the LED goes off until i press a button on my remote, which is received by the IR REceiver
[01:56:25] <mbertens> RikusW: ok the blocking version works now too, only the same problem is there
[02:02:59] <RikusW> the blocking code seems to be ok to me..
[02:04:16] <mbertens> yeah, only the check for the buffer i needed the removed
[02:10:21] <RikusW> budved: sounds weird
[02:11:04] <budved> i know! :(
[02:11:08] <RikusW> budved: it could be noise, do you have enough decoupling caps ?
[02:11:23] <RikusW> for vcc - gnd
[02:11:41] <RikusW> I don't see any..
[02:11:51] <budved> hmm I don't have any... only the capacitors for the max232
[02:12:01] <RikusW> you need vcc -gnd caps too
[02:12:03] <budved> but only noise when both chips are plugged in?
[02:12:19] <RikusW> try adding caps and see what happens
[02:12:38] <budved> alright, i don't have any so I'll give it a shot, maybe tomorrow
[02:12:49] <budved> where would I place them?
[02:13:24] <RikusW> vcc -> gnd
[02:13:35] <RikusW> maybe a few
[02:13:42] <RikusW> one close to each chip
[02:14:05] <budved> alright, thanks for the suggestion, ill give it a try
[02:14:08] <budved> such a bizarre problem :S
[02:14:32] <budved> oh another thing
[02:14:42] <budved> if instead of plugging vcc and gnd into the max232
[02:14:46] <budved> i swap the max232 with just a resistor
[02:15:00] <budved> then the LED is fine
[02:15:44] <RikusW> still seems like noise to me
[02:15:58] <budved> so I was wondering if maybe the chip was causing a short between vcc and gnd or something, but the voltage measures correctly across the circuit
[02:15:59] <budved> alright
[02:17:32] <tomatto> hi
[02:17:46] <budved> you say tomatto, i say tomato
[02:18:02] <tomatto> please, do you know about some good mosfet driver which can be used with avr?
[04:04:36] <MotionObserver> best tutorial for someone who is new to AVR? i have some attiny 2313v 10pu 's that i would like to make control some lights. any links you can offer?
[04:26:02] <OndraSterver> Casper, let me redirect you to CapnKernel
[04:26:04] <OndraSterver> he does PCBs here
[04:27:06] <CapnKernel> Casper: Hi
[04:27:07] <MotionObserver> best tutorial for someone who is new to AVR? i have some attiny 2313v 10pu 's that i would like to make control some lights. any links you can offer? sorry, disconnected earlier
[04:29:16] <jacekowski> google.com
[04:43:09] <megal0maniac> jacekowski: I use that one all the time
[04:47:16] <megal0maniac> MotionObserver: It depends on how much you know already. I started by using the Arduino IDE, then digging into what was actually going on by reading the doc and looking at the source of libraries. Then I migrated to C++ in Atmel Studio. Googling everything that crossed my mind along the way
[04:47:55] <MotionObserver> thanks !
[04:48:05] <MotionObserver> i found some good infos on the internet.com
[04:53:51] <OndraSterver> Dear Atmel
[04:54:00] <OndraSterver> why are you talking about PortL in EBI "howto" document
[04:54:03] <OndraSterver> when there is no Port L
[04:54:05] <OndraSterver> ..
[04:54:18] <OndraSterver> only A B C D E F H J K Q R
[04:55:03] <OndraSterver> the manual talks about "A17-A23 can be moved to PortE or PortF"
[04:55:11] <vsync_> I think you have to go through the rabbit hole first...
[04:55:17] <OndraSterver> but I have A8-A11
[04:55:57] <jacekowski> i thought i've seen device with portL
[04:56:03] <OndraSterver> o_O
[04:56:08] <OndraSterver> some 144pin?
[04:56:17] <vsync_> Oh megal0maniac how's that sensor board you were doing coming along?
[04:56:48] <vsync_> Or, the interface
[04:58:50] <jacekowski> OndraSterver: just 100 pin
[04:58:54] <jacekowski> OndraSterver: http://www.atmel.com/Images/doc2549.pdf
[05:00:28] <jacekowski> OndraSterver: page 103
[05:00:30] <jacekowski> 104*
[05:04:11] <OndraSterver> jacekowski, but atmega doesn't have EBI
[05:13:45] <jacekowski> well, you probably can get portl on xmega as well
[05:13:58] <megal0maniac> vsync_: Haven't done much lately, but did start with building an Arduino lib which talks to the program, but the values are broken. Haven't taken the time to disect the output against the desired output yet
[05:31:25] <OndraSterver> jacekowski, show me one :(
[05:31:29] <OndraSterver> only A1 series has EBI
[05:31:32] <OndraSterver> and there is no L
[05:31:41] <OndraSterver> the datasheet of A1 says
[05:31:53] <OndraSterver> 1. CS0 - CS3 can optionally be moved to Port E or F
[05:31:53] <OndraSterver> 2. A17-A23 can optionally be moved to Port E or F when EBI configured in 4PORT mode.
[05:32:02] <OndraSterver> which sounds like the thing you need for 4port SDRAM
[05:32:09] <OndraSterver> like what should be on PortL
[05:34:21] <OndraSterver> I shall write atmel
[05:36:43] <megal0maniac> You mean Dean? :P
[05:37:34] <megal0maniac> Have you sold any xboards?
[05:38:07] * megal0maniac beats tobbor with specings tree
[05:38:33] <OndraSterver> megal0maniac, nope, not yet :D
[05:38:53] <megal0maniac> What was your solution for the vreg?
[05:40:11] <OndraSterver> rotate it by 90°
[05:40:13] <OndraSterver> :D
[05:40:15] <OndraSterver> it looks bodged
[05:40:41] <megal0maniac> I'll order the 4th one you make :P
[05:41:08] <OndraSterver> hh
[05:41:09] <OndraSterver> heh
[05:41:37] <megal0maniac> I'll be "less" poor (hopefully) by the end of the month
[05:43:35] <OndraSterver> the month has just started :( :D
[05:43:42] <OndraSterver> damn I am reading datasheet about the a1u
[05:43:46] <OndraSterver> the errata is just... awful
[05:44:01] <OndraSterver> USB Auto ZLP feature is non-functional
[05:44:01] <OndraSterver> The Auto ZLP feature is non-functional and can not be used.
[05:44:03] <megal0maniac> 2549?
[05:44:08] <OndraSterver> USB, when receiving 1023Byte length isochronous frame, it will corrupt 1024th SRAM location
[05:44:08] <OndraSterver> When USB is configured for isochronous operation and 1023Byte data payload size, the 1024th RAM location
[05:44:08] <OndraSterver> that is directly after the endpoint RAM buffer will be corrupted.
[05:44:14] <OndraSterver> 2549 what?
[05:44:20] <megal0maniac> doc2549?
[05:44:33] <OndraSterver> oh
[05:44:35] <OndraSterver> don't know
[05:44:37] <OndraSterver> I renamed them :D
[05:46:14] <OndraSterver> http://www.atmel.com/Images/doc8385.pdf
[05:46:16] <OndraSterver> 8385
[05:47:42] <OndraSterver> oh c'mon atmel :(
[05:47:45] <OndraSterver> GET YOUR SHIT TOGETHER
[05:47:57] <OndraSterver> luckily they have released new revision of a3u
[05:48:01] <OndraSterver> which fixes the nastiest bugs
[05:48:05] <OndraSterver> now do the same for a1u
[05:48:46] <megal0maniac> What is the difference between a3u and a1u?
[05:48:50] <OndraSterver> EBI
[05:48:54] <OndraSterver> and 100 instead of 64 pins
[05:48:58] <OndraSterver> and two DACs
[05:49:01] <OndraSterver> instead just one
[05:49:09] <OndraSterver> (aka 4 channels on a1, 2 channels on a3)
[05:49:24] <megal0maniac> Ah.
[05:49:29] <OndraSterver> actually whole a3u series is "fixed" compared to old a3 only
[05:49:36] <OndraSterver> only single bug in errata with AWeX
[05:49:49] <megal0maniac> You're using (or planning on using) the a1u for the xboard mega, yeah?
[05:49:55] <OndraSterver> ultra
[05:49:56] <OndraSterver> yes
[05:49:59] <OndraSterver> I wanted :(
[05:50:01] <megal0maniac> That one :)
[05:50:11] <OndraSterver> I have even sampled three pieces of this chip from atmel
[05:50:25] <OndraSterver> but with such errata I am not sure I want to
[05:53:47] <OndraSterver> why couldn't they just grab the USB module from a3u?
[05:53:55] <OndraSterver> same for TWI modules
[05:56:05] <OndraSterver> oh well, mini and coco will have to do for now
[05:56:19] <OndraSterver> one can fairly cheaply add SRAM/SDRAM to them with a bit of software coding
[05:56:38] <OndraSterver> (well, on mini not really, there is not much pins :D)
[05:56:50] <OndraSterver> 32 IO pins on mini
[05:57:49] <karlp> OndraSterver: have you seen pjrc's teensy3?
[05:57:59] <megal0maniac> Teensy3?????
[05:58:04] <megal0maniac> :D
[05:58:23] <megal0maniac> ...
[05:58:29] <megal0maniac> Where?
[05:59:14] <megal0maniac> OndraSterver: Mini actually looks pretty cool. Was initially put off by the 32kb of flash, but when will I realistically ever need more? For what I'm doing, at least
[05:59:48] <megal0maniac> karlp: You have deceived me
[05:59:55] <megal0maniac> :)
[06:01:25] <OndraSterver> karlp, no
[06:02:09] <OndraSterver> megal0maniac, is karlp 's teensy3 real? :P
[06:02:21] <megal0maniac> OndraSterver: No. :(
[06:02:24] <OndraSterver> heh
[06:02:38] <megal0maniac> Teensy2 and Teensy2++, yes
[06:02:44] <megal0maniac> http://www.pjrc.com/teensy/
[06:03:49] <karlp> http://www.kickstarter.com/projects/paulstoffregen/teensy-30-32-bit-arm-cortex-m4-usable-in-arduino-a
[06:04:29] <megal0maniac> $35,725 pledged of $5,000 goal
[06:04:31] <megal0maniac> Nice
[06:05:40] <OndraSterver> ugh
[06:05:46] <OndraSterver> too bad kickstarter is for US only
[06:05:47] <OndraSterver> from what I know
[06:06:16] <karlp> no, kickstarters have to be based in the us, but the backers can be anywhere
[06:06:27] <CapnKernel> Yeah. I know several guys in Australia who have fantastic projects that could really use some kickstarter help
[06:06:40] <megal0maniac> OndraSterver: The Teensy range isn't anything particularly fancy, it's the supporting software.
[06:06:51] <karlp> absolutely,
[06:07:07] <CapnKernel> I'm a bit annoyed that the teensy bootloader is proprietary
[06:07:08] <karlp> software makes the difference, and paul's proven he's pretty good at doing that well
[06:07:14] <OndraSterver> <karlp> no, kickstarters have to be based in the us, but the backers can be anywhere
[06:07:16] <OndraSterver> that's what I ment :)
[06:07:24] <megal0maniac> CapnKernel: Me too. But I think it's for the best
[06:07:29] <CapnKernel> Not only that, when abcminiuser made something compatible, PJ gave him a hard time
[06:07:51] <megal0maniac> Thought they were all buddy-buddy
[06:08:31] <megal0maniac> But halfkay is really good.
[06:08:51] <OndraSterver> does teensy have its own "IDE" just like arduino?
[06:09:02] <megal0maniac> It's basically a patch for Arduino
[06:09:11] <megal0maniac> So adds Teensy to the list of boards
[06:09:11] <karlp> teensyduino is a patch for arduino
[06:09:32] <karlp> teensy and the halfkay bootloader can also happily be used by whatever plain C dev you feel like doing.
[06:09:38] <OndraSterver> oh
[06:10:03] <megal0maniac> http://www.pjrc.com/teensy/teensyduino_sc1_mini.png
[06:11:03] <megal0maniac> Teensy loader accepts hex files, basically. Don't think you can read or write eeprom from your pc though
[06:15:16] <OndraSterver> I see
[06:15:17] <OndraSterver> thanks
[06:25:36] <megal0maniac> OndraSterver: Do you have anything in mind in terms of supporting software?
[06:26:34] <megal0maniac> Even some well commented example C programs are hugely helpful
[06:44:18] <vsync_> code must be self-documenting!
[06:52:09] <OndraSterver> megal0maniac, yes
[06:52:15] <OndraSterver> for now only atmel studio examples
[06:52:21] <OndraSterver> later something arduino-like most likely
[06:52:35] <OndraSterver> I like AS because of hinting and everything
[06:52:40] <OndraSterver> which is not happening on arduino
[07:04:52] * mbertens pulling his hair out, over this stupid serial character corruption
[07:05:35] <mbertens> put a delay of 1 ms at the back of each gLCD call now it works just fine
[07:14:14] <megal0maniac> Okay, I need help not related to AVRs at all
[07:14:55] <megal0maniac> Having tried to repair this work done by the "professionals," I now need a new display and cable
[07:15:42] <megal0maniac> The display (15.6" LED) costs ZAR1030. The cable to connect it costs ZAR1264. (This is on a laptop)
[07:15:57] <megal0maniac> So now I need to find a cable from a source which isn't in ZA
[07:21:26] <OndraSterver> heh
[07:21:29] <OndraSterver> do you have a photo of it?
[07:21:36] <OndraSterver> there is about 20000 connectors for LVDS used in laptops
[07:23:41] <megal0maniac> It's for a Lenovo B570. The type for both the LCD and webcam. LA57
[07:24:00] <megal0maniac> Loads of results on ebay... But do I trust them?
[07:24:39] <megal0maniac> "GENUINE!! OEM!!"
[07:24:41] <OndraSterver> how much are they on ebay?
[07:25:41] <megal0maniac> Cheapest is $28, with $15 shipping
[07:25:51] <OndraSterver> holy cow
[07:25:53] <OndraSterver> just for a wire?
[07:28:10] <megal0maniac> ZAR1264, with VAT works out to $175
[07:28:40] <megal0maniac> (Note how the display is cheaper than the cable)
[07:28:49] <OndraSterver> hehe
[07:52:20] <megal0maniac> I'm going to have to test to make sure that something else isn't the problem. But it looks like ebay is the way to go
[07:58:43] * megal0maniac is scared of ebay
[08:02:31] <Richard_Cavell> Don't be scared
[08:03:10] <megal0maniac> Heard about too many unhappy endings
[08:03:22] <OndraSterver> I spent a lot on ebay
[08:03:26] <Richard_Cavell> You have to pay extra for the happy ending
[08:04:41] <OndraSterver> lol
[08:12:26] <Richard_Cavell> I'm tired but not tired. Do you ever get that feeling?
[08:16:44] <OndraSterver> yes
[08:16:46] <OndraSterver> every day
[08:17:30] <vsync_> hmh
[08:19:53] <vsync_> umpf really need some food. Thinking of burgers.
[08:30:11] <xpololz> whaaa, how do I pick one of these hundreds of lcd displays from farnell? they should follow some standard right..?
[08:31:11] <OndraSterver> link?
[08:32:24] <xpololz> http://tinyurl.com/c5cava9
[08:32:50] <karlp> this isn't twitter man, you don't need to shorten urls
[08:33:00] <xpololz> it was uugly
[08:33:15] <OndraSterver> oh 16x2 displays
[08:33:23] <OndraSterver> yes, they have 99% HD44780 clone
[08:33:47] <xpololz> okay
[08:33:56] <OndraSterver> damn they are expensive
[08:33:58] <xpololz> then I can just pick one and hope it's not on the 1%
[08:34:04] <OndraSterver> datasheet
[08:34:12] <OndraSterver> wait, which one do you mean?
[08:34:19] <OndraSterver> there are the alfanumeric LCD modules
[08:34:25] <OndraSterver> or just numeric ones
[08:34:33] <OndraSterver> that have no drivers embedded usually
[08:34:53] <xpololz> I want alfanumeric :)
[08:34:56] <OndraSterver> ok
[08:35:07] <OndraSterver> http://cz.farnell.com/powertip/pc1602aru-hwb-g-q/lcd-module-16x2-x-tmp/dp/1671498
[08:35:08] <OndraSterver> like this?
[08:35:23] <karlp> xpololz: it doesn't matter if it's ugly, why on earth would we want extra layers of redirection?
[08:35:50] <OndraSterver> yep it is HD44780 clone
[08:36:11] <xpololz> karlp, I'm sure someone would complain if I posted the whole link as well...
[08:36:24] <OndraSterver> if it would be clickable - no :)
[08:36:44] <karlp> a long (ugly) url also shows me what you're linking to.
[08:36:54] <karlp> I have no idea what's behind an url shortened service.
[08:36:56] <xpololz> indeed
[08:38:20] <xpololz> OndraSterver, yeah :-) looks nice
[08:40:31] <OndraSterver> xpololz, on the other hand... http://www.ebay.com/itm/NEW-Character-LCD-Module-Display-LCM-1602-16X2-162-blue-/320746806372?pt=LH_DefaultDomain_0&hash=item4aadffdc64
[08:40:40] <OndraSterver> this is directly from the factory rather factory -> farnell -> you
[08:41:22] <xpololz> ooh
[08:41:38] <OndraSterver> if you check the datasheet you can see that it is from china :D
[08:42:01] <xpololz> yeah
[08:42:33] <xpololz> but I've got like 33 parts on my list now, shipping costs as well
[08:42:47] <xpololz> can't be arsed to order everything from separate places
[08:43:17] <xpololz> perhaps Farnell isn't the best place to order from though :-/
[08:43:32] <OndraSterver> farnell is expensive
[08:43:34] <OndraSterver> check mouser :)
[08:43:46] <OndraSterver> for displays I'd go for ebay really, for passives and ICs I'd go for mouser/digikey
[08:43:58] <OndraSterver> I go*
[08:44:15] <xpololz> but farnell is also faster?
[08:45:07] <OndraSterver> that depends where are you from
[08:45:17] <OndraSterver> farnell is UK/US based
[08:45:23] <OndraSterver> digikey/mouser are both US based only
[08:45:44] <xpololz> I'm much further north than you
[08:45:46] <xpololz> Norway
[08:45:48] <OndraSterver> oh
[08:45:52] <OndraSterver> I got parts via czech mouser reseller... I didn't have to pay 40€ shipping but 5€ just as I would do on farnell
[08:46:00] <OndraSterver> it took about a week only
[08:46:06] <OndraSterver> and they had to wait 2 days for me to sign some paper
[08:46:19] <OndraSterver> because bloody US has some laws about exporting parts that support hardware crypto :D
[08:46:50] <xpololz> yeah
[08:48:20] <Erlkoenig> crypto is ammunition or something like that? :D
[08:49:06] <xpololz> I remember I ordered spartan-3e fpga board, think farnell took about 2x the price of digilent
[08:53:47] <OndraSterver> crypto is AES + DES on xmegas
[08:54:02] <OndraSterver> and you need to sign some paper that you are not banned from exporting them from the US lol
[08:54:30] <Landon> ammunition >.o
[08:54:32] <Landon> it's under munitions
[08:54:54] <OndraSterver> heh
[08:58:38] <Erlkoenig> "Nooo, i'm not a terrorist"
[08:59:34] <Erlkoenig> duh? is there a difference between "ammunition" and "munition" ?
[08:59:54] <OndraSterver> yes
[08:59:56] <OndraSterver> "am"
[09:00:03] <Erlkoenig> ... greate.
[09:00:05] <Erlkoenig> -e
[09:00:12] * OndraSterver flies away
[09:02:21] <Landon> Erlkoenig: one is for weapons, the other is for war
[09:02:43] <Erlkoenig> wat? aren't weapons for war?
[09:02:56] <Landon> yes, but you don't call weapons "wars"
[09:02:57] <Landon> :P
[09:03:57] <Erlkoenig> i don't get it. english is a mystery.
[09:04:49] <Landon> am- is a prefix that means weapons
[09:04:54] <Landon> am-munition
[09:04:55] <Landon> weapons of war
[09:04:58] <Landon> am-erica
[09:05:00] <Landon> weapons of erica
[09:05:06] <OndraSterver> lol
[09:05:08] <Landon> amoral
[09:05:09] <Landon> oral weapons
[09:05:37] <Erlkoenig> trolls, trolls everywhere :D
[09:10:51] <Casper> Ammunition: Articles used in charging firearms and ordnance of all kinds; as powder, balls, shot, shells, percussion caps, rockets, etc.
[09:11:10] <Casper> Munition: Whatever materials are used in war for defense or for annoying an enemy; ammunition; also, stores and provisions; military stores of all kinds.
[09:11:17] <Casper> source: webster
[09:12:53] <Erlkoenig> fascinating. German "Munition" seems to be english "Ammunition", and english "Munition" doesn't have a german translation. neat.
[10:17:21] <raven> hi again
[10:19:32] <raven> what is the right avrdude device id (-c option) for programming via ttyUSB0 usb-serial-converter?
[10:40:15] <raven> what is the right avrdude device id (-c option) for programming via ttyUSB0 usb-serial-converter?
[10:41:43] <Erlkoenig> that depends what is connected to the usb-serial-converter.
[10:41:47] <Corwin> -c specifies used programmer
[10:42:04] <OndraSterver> well
[10:42:07] <Corwin> raven, or do you want to do bitbang ISP?
[10:42:11] <OndraSterver> does it have STK500 bootloader?
[10:42:47] <raven> its a simple usb-serial adapter i built a line driver direct to the avr
[10:43:03] <raven> so i need to do all by software
[10:43:21] <Corwin> raven, any chance you have bootloader in your AVR?
[10:44:19] <Erlkoenig> without any bootloader, you can't program the AVR that way
[10:44:29] <raven> i think so ;) its already programmed via avrstudio running in windows and i need to transfer it to linux with the serial converter
[10:44:54] <Corwin> "think so" does not count....
[10:45:03] <Erlkoenig> you need to flash a bootloader.
[10:45:19] <OndraSterver> actually even serial port can be abused enough to work as ISP :)
[10:45:23] <OndraSterver> to burn in bootloader
[10:45:40] <Erlkoenig> which hardware did you use to program the AVR in avrstudio? you might be able to use that with avrdude too
[10:45:41] <OndraSterver> to bootstrap *
[10:45:51] <raven> that means the program on it already runs without any bootloader?
[10:46:31] <raven> so that means a running program does not mean a bootloader is installed on the chip?
[10:46:41] <raven> (sry i am rather new to that topic)
[10:46:47] <karlp> correct.
[10:46:53] <Corwin> bootloader is not required if you used real programmer to transfer the app to AVR
[10:46:56] <karlp> you can program your application as the only program onthe avr
[10:47:19] <Erlkoenig> "bootloader" in the context of mikrocontrollers is a different thing than "bootloader" on PC's ...
[10:47:24] <raven> ok which bootloader do i need?
[10:47:42] <Erlkoenig> any UART-based...
[10:47:44] <Corwin> raven, do you have access to any REAL programmer?
[10:48:01] <raven> Corwin yes via avrstudio4/windows
[10:48:11] <Erlkoenig> he was talking about the HARDWARE
[10:48:13] <raven> there i can use the avrispmkii
[10:48:23] <Erlkoenig> you can use the avrispmkii with avrdude, probably
[10:48:32] <Erlkoenig> without the usb-rs232 adapter
[10:49:04] <Corwin> -c avrispmkII
[10:49:20] <Corwin> at least thats whats in 4 docs
[10:49:27] <raven> i tried some days to run it via linux but its not possible
[10:49:47] <raven> is there any download for a bootloader?
[10:50:20] <Corwin> well then you will have to go back to windows, use avrstudio and avrispmk2 and burn bootloader to AVR
[10:50:28] <Erlkoenig> you should probably try to get the avrispmkii to work on linux, because that's usually a better choice
[10:50:43] <Erlkoenig> e.g. you can write the FUSE bits that way
[10:50:50] <raven> Erlkoenig it was not possible with any option
[10:51:01] <Corwin> then you can use the bootloader from linux with usb-serial conver connected to UART on AVR chip
[10:51:01] <Erlkoenig> try it again, post error messages
[10:51:02] <raven> Erlkoenig we could talk about that
[10:51:45] <raven> Corwin sry i do not understand: where do i find any hex file with the bootloader?
[10:51:57] <raven> is it within avrdude?
[10:52:18] <Erlkoenig> raven: you can find some on the internet
[10:52:36] <raven> of course but which is the right one?
[10:52:38] <Erlkoenig> you have to flash the shipped .hex files, and then use the corresponding program to flash the device
[10:52:47] <raven> just "anything" named avr usart bootloader?
[10:52:59] <Erlkoenig> there are probably many options... i used the FBoot bootloader, but i think the docs are all in german
[10:53:49] <Erlkoenig> try to get the avrispmkii working, that's better
[10:53:58] <Erlkoenig> it's probably just a simple permissions issue
[10:55:04] <raven> several people tried that with me already but we can do it again after i found any useful bootloader ;)
[10:56:02] <Erlkoenig> e.g. FBoot if you speak german
[10:56:39] <Corwin> or simply AVR109 if you want "atmel" code :)
[11:08:50] <raven> "does not fit into target device"....... its only 1k eeprom
[11:09:13] <Corwin> what device is that?
[11:09:21] <Corwin> avr tiny ?
[11:09:23] <Erlkoenig> what? the bootloader should not go into the eeprom O_o
[11:09:39] <raven> atmega8-16
[11:10:00] <raven> ?
[11:10:33] <raven> eeprom isnt right?
[11:11:05] <Corwin> no, flash is right
[11:11:25] <Corwin> bootloader is just another app
[11:11:48] <raven> ok but wouldnt it be overwritten?
[11:11:53] <Corwin> no
[11:12:03] <Corwin> thats what fuses are
[11:12:10] <karlp> add the -p atmegaxx part
[11:12:17] <karlp> otherwise it will default to all sorts of crazy shit
[11:12:29] <Corwin> one you write bootloader to AVR, you can lock it with fuses so it wont get overwritten or deleted by chip erase
[11:13:00] <Corwin> and the bootloader itself is (should be) smart enough not to delete itself
[11:13:06] <raven> ok so what do i have to set in the avrstudio fuses dialog?
[11:14:29] <raven> EESAVE?
[11:14:45] <raven> boot size offset?
[11:16:00] <Erlkoenig> it's all documented, e.g. with the bootloader
[11:21:41] <raven> ok lets verify i understand right
[11:22:41] <raven> bootsz is set to 1024 words and $0c00 - i activate bootrst and program the bootloader right?
[11:34:33] <OndraSterver> if the bootloader is made for 2kB boot section, yes
[12:00:16] <OndraSterver> I am searching for these
[12:00:17] <OndraSterver> http://www.hvwtech.com/products_view.asp?ProductID=328
[12:00:20] <OndraSterver> but nothing on digikey or mouser
[12:00:23] <OndraSterver> only 72pin ones :(
[13:41:51] * Corwin hates avrdude
[13:46:16] <OndraSterver> Corwin, AS6 ftw :)
[13:46:27] <Corwin> cant
[13:46:34] <Corwin> not right now
[13:47:54] <Corwin> i would use AS but right now i dont have any cable to connect my dragon to target board
[13:48:09] <OndraSterver> oh
[13:48:12] <OndraSterver> that's bad mmkay
[13:48:43] <Corwin> trying to use avrdude (since the board has bootloader) but all i get is "not in sync" error from avrdude
[13:49:17] <OndraSterver> uh
[13:54:30] <Corwin> think its time to take apart another flat cable from old floppy drive and make "new" isp cable :)
[13:55:02] <RikusW> are you using the right programmer type ?
[13:55:24] <Corwin> according to board docs... yes
[13:58:20] <Corwin> RikusW, i like you :)
[13:58:41] <Corwin> you made me check docs again... right programmer type... wrong speed
[14:01:43] <OndraSterver> heh
[14:08:31] <RikusW> nice ;)
[14:09:08] <RikusW> corwin: so which programmer is that ?
[14:09:30] <Corwin> bootloader using stk500v1 protocol
[14:09:33] <RikusW> ah
[14:09:42] <RikusW> that protocol is a bit old
[14:09:51] <Corwin> so is that board
[14:09:52] <RikusW> but arduino use it
[14:09:58] <RikusW> I'
[14:10:10] <RikusW> I've made stk500v2 to work with arduino
[14:10:18] <RikusW> just edited the config files
[14:10:40] <Corwin> now... last thing to do... find out how to connect graphical display in SPI mode
[14:15:44] <OndraSterver> which graphical display?
[14:16:31] <Corwin> 128x64, with ST7920 chip
[14:17:03] <Corwin> compatible with KS0108
[14:17:08] <OndraSterver> I see
[14:17:15] <OndraSterver> I know only the parallel 8bit one :)
[14:17:19] <OndraSterver> I forgot its number
[14:17:33] <OndraSterver> YESSS!!! I FOUND THE 60 MINUTES LONG VIETNAM SPECIAL OF TOP GEAR!
[14:17:36] <OndraSterver> took me a month
[14:17:41] <Corwin> this one has 8bit databus too
[14:17:44] <OndraSterver> where all parts work
[14:17:48] <OndraSterver> 8/4/serial
[14:17:49] <OndraSterver> I read
[14:22:54] <theorifice> Is there a way to detect if a firmware was booted via bootloader or not?
[14:25:36] <OndraSterver> you can make it to
[14:25:40] <OndraSterver> like save some stuff into memory
[14:25:47] <OndraSterver> or preset some register to some value
[14:26:40] <theorifice> Yea that's the 'brute-force' way I guess. I can probably just check the fuse bits
[14:27:32] <OndraSterver> that is possible too
[14:27:47] <RikusW> OndraSterver: found it on some torrent ?
[14:27:55] <Corwin> OndraSterver, btw what is final price for coco board?
[14:28:18] <OndraSterver> RikusW, no, some streaming website
[14:28:38] <OndraSterver> Corwin, 23€ shipped
[14:28:47] * RikusW isn't much of a top gear fan....
[14:28:53] <Corwin> in czk, please
[14:29:03] <RikusW> however, where SG is concerned.....
[14:29:09] <OndraSterver> 575CZK
[14:29:15] <OndraSterver> although let me check cpost
[14:30:30] <OndraSterver> 59 CZK says cpost
[14:30:33] <OndraSterver> thus 559 CZK
[15:34:25] <megal0maniac> Now I want to buy an xboard coco AND the Teensy3. And I can. But I shouldn't...
[15:34:49] <megal0maniac> I've got chips which I haven't even seen power yet
[15:34:59] <Corwin> be a rebel.... buy both boards :)
[15:35:11] <OndraSterver> :D
[15:35:13] <megal0maniac> But then I'll be a _very_ poor rebel :P
[15:35:28] * megal0maniac is waiting quietly for coco rev B
[15:35:39] <OndraSterver> coco revB won't happen till I sell out rev A :
[15:35:39] <OndraSterver> :D
[15:36:08] <OndraSterver> that reminds me that I want to remove the "notch" marking on PCB, because some cables have it flipped... Leave just pin1 marking
[15:36:41] <Corwin> that reminds me.....i should be sleeping by now
[15:36:57] <OndraSterver> it is 2223 only
[15:37:07] <megal0maniac> It is that
[15:37:10] <Corwin> 22:25
[15:37:23] <megal0maniac> GMT+2 or DST?
[15:37:31] <Corwin> and i woke up yesterday at 05:40
[15:37:32] <megal0maniac> "Do not attempt to service any computer unless you have been trained andcertified. An untrained person runs the risk of damaging parts"
[15:37:47] <megal0maniac> I haven't been trained OR certified :D
[15:37:51] <OndraSterver> no risk = no fun really
[15:37:59] <megal0maniac> Corwin: THAT's me being a rebel
[15:38:06] <megal0maniac> TOBBOR!
[15:38:08] <OndraSterver> that reminds me that I have got here still 3 TV flybacks and one MOT
[15:38:18] <Corwin> "training" .... for some reason it reminded me intro talk in Halflife
[15:38:40] <megal0maniac> I don't get "training," so much as figuring stuff out.
[15:38:50] <OndraSterver> heh
[15:38:58] <OndraSterver> I haven't played HalfLife in like... 4 months!
[15:39:17] <Corwin> i havent played it like.... 3 years
[15:39:28] <megal0maniac> Half Life 2 was one of the first games I ever finished.
[15:39:28] <OndraSterver> HL2EP2 didn't get my achievement with traveling with that garden gnome, because I got stuck in some place and I couldn't get out... so I had to use noclip :(
[15:39:36] * megal0maniac sucks at finishing stuff
[15:39:40] <OndraSterver> hmm I do wonder what was my first game I ever finished
[15:39:42] <OndraSterver> hard to say
[15:40:27] <OndraSterver> I do wonder... people (datasheet) says put 10uH coil on the input. But before vreg or after vreg? :P
[15:40:29] <Corwin> hl2... never played that
[15:40:58] <megal0maniac> Corwin: You should. One of the most amazing games I've ever played
[15:41:07] <megal0maniac> The synergy mod isn't half bad either.
[15:41:14] <Corwin> i "should" to many things
[15:41:48] <Corwin> like...i should buy xbox360... to play HALO :)
[15:41:56] <OndraSterver> I have got HALO for PC
[15:42:00] <OndraSterver> the first original game I ever had :P
[15:42:07] <OndraSterver> I won it somewhere.... don't remember where
[15:42:09] <Corwin> only halo and halo2 are pc
[15:42:12] <OndraSterver> yes
[15:42:16] <OndraSterver> and halo2 sucks on PC :(
[15:42:21] <OndraSterver> and I wish I had xbox just because of halo
[15:42:29] <Corwin> same here
[15:42:39] <megal0maniac> Halo 1 on pc is also one of the coolest multiplayer games
[15:42:53] <OndraSterver> I couldn't finish HALO1 on my PC either, because it was broken towards the end.. had to finish it on laptop :D
[15:42:58] <Corwin> there is new HALO comming out soon
[15:42:58] <OndraSterver> yes
[15:43:01] <OndraSterver> BUT NO PC AGAIN!
[15:43:08] <OndraSterver> how can anybody play FPS on Xbox without mouse and keyboard? :(
[15:43:09] <megal0maniac> Not surprised
[15:43:20] <megal0maniac> I tried it once, actually.
[15:43:27] <megal0maniac> You get used to it
[15:43:29] <OndraSterver> I played only with Kinect on xbox :D
[15:43:35] <OndraSterver> autoaim works good you say? :D
[15:43:54] <megal0maniac> First time I ever saw halo was on xbox. 4 player split screen :P
[15:44:00] <OndraSterver> well, once new xbox comes out the old one will be cheap :P
[15:44:01] <OndraSterver> hopefuly
[15:44:05] <OndraSterver> heh
[15:45:10] <Corwin> i loved playing halo with projector... on whole wall :)
[15:45:22] <OndraSterver> :D
[15:45:25] <OndraSterver> I would love that as well
[15:45:29] <Corwin> almost like 3D
[15:45:31] <Corwin> :)
[15:45:42] <OndraSterver> but... no projector kills that idea
[15:45:47] * megal0maniac has one of works projectors in a bag under my bed...
[15:45:50] <megal0maniac> :D
[15:46:00] <megal0maniac> Also a xbox controller and PC receiver
[15:46:03] <megal0maniac> No xbox
[16:03:04] <megal0maniac> Chinese knock-off NES was my first and only console
[16:04:17] <specing> A Tektronix terminal was my first and only console
[16:04:22] <specing> j/k
[16:13:05] <OndraSterver> I have got here original NES
[16:13:10] <OndraSterver> but controllers don't work
[16:13:14] <OndraSterver> and I have yet to play with it
[16:13:20] <OndraSterver> see if there is some kind of short or whatever
[16:13:22] <OndraSterver> I tried two controllers
[16:13:27] <OndraSterver> chinese knockoffs but new ones
[16:13:29] <OndraSterver> actually three even
[16:41:11] <megal0maniac> Was just thinking about a Teensy project that might have helped, but it achieved the opposite. You ended up with a USB NES controller :)
[16:42:23] <OndraSterver> NES emu on AVR? :D
[16:42:28] <Kevin`> it would probably help anyway, in the form of real-life documentation of the controller behavior
[16:42:37] * megal0maniac doesn't know what to do with this atmega1284p
[16:43:33] <Kevin`> i've actually been thinking of sticking an avr inside of an xbox 360 controller to make it usable on windows. isn't that twisted? :/
[16:43:39] <megal0maniac> OndraSterver: I think it might actually be easier than it seems. Considering the existing gaming abilities of AVRs
[16:43:47] <OndraSterver> speed is the issue
[16:43:51] <megal0maniac> Kevin`: You get receivers for that
[16:43:52] <OndraSterver> on overclocked xmega MAYBE
[16:44:00] <Kevin`> megal0maniac: already a usb controller
[16:44:01] <OndraSterver> but even look up tables will have serious perfomance issues
[16:44:03] <megal0maniac> OndraSterver: How fast does it need to be?
[16:44:10] <OndraSterver> well the stock is 2.something MHz I think
[16:44:11] <Kevin`> megal0maniac: it's just microsoft's driver for xbox 360 controller sucks
[16:44:12] <megal0maniac> Kevin`: Oh
[16:44:13] <OndraSterver> in NES
[16:44:30] <OndraSterver> with 64MHz CPU clock it gives you less than 32 cycles per instruction
[16:44:34] <OndraSterver> to emulate BOTH CPU and GPU
[16:44:50] <Kevin`> megal0maniac: and it's intentional, since they want people to use an xbox-specific api or some similar garbage :/
[16:44:54] <megal0maniac> And it would be a mission to split the two
[16:44:58] <OndraSterver> heh
[16:45:11] <megal0maniac> Or would it?...
[16:45:29] <megal0maniac> Kevin`: Microsoft is like that sometimes :/
[16:45:32] <OndraSterver> hardly
[16:45:36] <OndraSterver> for half emulating speed maybe
[16:46:13] <Kevin`> megal0maniac: more irony in that the linux driver works fine, and also supports the original xbox controllers :/
[16:46:38] <megal0maniac> Kevin`: Yes, but was the Linux driver written by Microsoft? :)
[16:46:46] <Kevin`> nop
[16:46:53] <megal0maniac> There's an OSX driver too, but I don't fancy it
[16:50:59] <megal0maniac> I have this, and only because a friend practically gave it to me
[16:51:00] <megal0maniac> http://www.logitech.com/en-us/support/game-gear/292
[16:51:56] <megal0maniac> They took out the vibrator and put in a fan. No more sweaty hands :D
[17:05:58] <megal0maniac> Looking at downloading eclipse (because I want a C/C++ IDE which isn't visual studio express)
[17:06:10] <megal0maniac> Is org.eclipse.cdt.build.crossgcc a compiler?
[17:06:47] <OndraSterver> why would one NOT want VS?
[17:07:28] <specing> I don't get it, either...
[17:08:11] <megal0maniac> Because I'm trying to open a 2008 project in 2010, so it asks if I want to proceed with conversion, I say yes and nothing happens.
[17:08:17] <megal0maniac> And I like Eclipse
[17:08:29] <megal0maniac> And now VS seems to want a license key or something
[17:08:46] <megal0maniac> It's Express. It's supposed to not need that stuff
[17:09:31] <specing> Titanic was also claimed to be express... it sank fast, too
[17:13:51] <megal0maniac> Eclipse it is, then :)
[21:09:01] <budved> Casper, so for my previous problem with the MAX232 and atmega328p and IR receiver, it turned out that I just needed a couple of filter caps
[21:09:03] <budved> thanks for you help