#avr | Logs for 2012-12-13

Back
[07:46:09] <Vutral> eh
[07:46:16] <Vutral> kline: you there ?
[07:46:24] <kline> Vutral: yes, why?
[07:46:34] <Vutral> i wonder if you can help me with a question
[07:46:38] <Vutral> i got a atmega328p here
[07:46:53] <Vutral> and i wondered if there is a way to turn spi clock off when i dont transmit data
[07:46:55] <Vutral> it seems teh clock runs all the time
[07:47:38] <Vutral> also i wondered if the spi clock is shared with the uart, since the pins shouldnt be shared but in the manual is something written about uart would be usualy in spi master mode even thought there is nothing mentioned about a relation between both
[07:49:30] <Vutral> 14:34:10 < Vutral> i wonder if you can help me with a question
[07:49:31] <Vutral> 14:34:14 < Vutral> i got a atmega328p here
[07:49:34] <Vutral> 14:34:29 < Vutral> and i wondered if there is a way to turn spi clock off when i dont transmit data
[07:49:36] <Vutral> 14:34:32 < Vutral> it seems teh clock runs all the time
[07:49:39] <Vutral> 14:35:13 < Vutral> also i wondered if the spi clock is shared with the uart, since the pins shouldnt be shared but in the manual is something written about uart would be usualy in spi master mode even thought there is nothing mentioned about a relation between both
[07:49:49] <Vutral> kline: ?
[07:50:07] <kline> sorry, im not really available to debug code right now
[07:50:15] <kline> (at uni trying to solve my own problems0
[07:50:53] <Vutral> :(
[09:45:27] <megal0maniac> 2nd last day at work :)
[09:46:40] <Steffanx> megal0maniac, found a new job?
[09:48:08] <megal0maniac> Well I wasn't intending to, I want to continue studying next year so I was leaving regardless. But I ended up finding a new job anyway :) Technical consultant to http://bluecow.co.za/
[09:49:44] <megal0maniac> Amusingly, one of the tasks I may well be involved with next year will be relocating the recording studios at my current work
[09:49:59] <megal0maniac> So I'll be back here anyway
[11:35:35] <megal0maniac> OndraSter: Ping
[11:36:54] <Horologium> that's one heck of a wide band ping there megal0maniac
[11:37:17] <megal0maniac> ...wait, what?
[11:37:47] <CoolBear> Is it correct that the stk500 isn't able to program the mega328p through AVRStudio6?
[11:38:17] <megal0maniac> CoolBear: Yes and no
[11:38:24] <Horologium> you pinged OndraSter and 2 other people pinged out.
[11:38:34] <megal0maniac> It isn't, out of the box. But it's easy to change
[11:38:56] <Horologium> software update?
[11:38:57] * CoolBear strangles random Atmel pepople!
[11:38:58] <megal0maniac> Horologium: Ah. :) Wasn't following
[11:39:07] <megal0maniac> CoolBear: It's pretty simple
[11:39:15] <megal0maniac> You make an .xml file
[11:39:19] <Horologium> atmel isn't near as bad as sharp or canon engineers.
[11:39:21] <megal0maniac> RikusW has done it for you
[11:39:34] <CoolBear> Horologium: Well, there is that.
[11:39:45] <megal0maniac> https://sites.google.com/site/megau2s/home/supporting-software
[11:39:53] <Horologium> I've threatened many times to kill copier engineers.
[11:39:55] <megal0maniac> AS6.tbz is what you want
[11:40:00] <Horologium> as I'm a copier tech and have to work on their crap.
[11:40:12] <jgdovin> hey all, just wanted to know if anyone knows if there is a way to skip the writing step in avrdude and just do verification on a chip that was previously burned
[11:40:28] <megal0maniac> avrdude --help
[11:40:57] <CoolBear> megal0maniac: Very nice, you have been most helpful :)
[11:41:25] <megal0maniac> CoolBear: No problem. Let us know if it works
[11:41:34] <megal0maniac> Or doesn't
[11:43:14] <jgdovin> haha.. so im guessing its just -n added to the current command we are running :-p
[11:43:19] <Horologium> that would probably explain why I couldn't get the stk500 to work with the attiny45 chips a week ago.
[11:44:31] <megal0maniac> jgdovin: Should work. But try and you'll see
[11:44:46] <jgdovin> lol thanks.. im not in front of our programming station right now
[11:44:50] <jgdovin> i'll have the boss check it later
[11:45:16] <jgdovin> i had to ssh in just to look at the help file :)
[11:45:42] <megal0maniac> Horologium: Yeah, it's something of a pain in the ass. Don't know why there isn't support for it out the box
[11:46:10] <megal0maniac> After all, it isn't like they tried to make it difficult to circumvent
[11:46:19] <Horologium> guess as6 supports the stk600 but not the 500?
[11:46:22] <jgdovin> thanks again :) later
[11:46:26] <megal0maniac> CoolBear: If you get stuck, although you probably won't.. http://www.pololu.com/docs/0J36/3.b.1
[11:46:38] <megal0maniac> Horologium: It supports both rather well
[11:47:09] <Horologium> I couldn't even get it to program an atmega16 the other day.
[11:47:32] <Horologium> although, I almost never use windows and it was the first time I've played with as6
[11:47:50] <megal0maniac> Didn't it work, or was the chip not in the list?
[11:47:52] <Horologium> just went back to command line with avrdude and it worked first time.
[11:48:05] <Horologium> it wouldn't talk to the board for some screwy reason.
[11:48:54] <megal0maniac> The .xml files just add to the list of chips supported by the stk500 - if it's in the list and it doesn't work, then you have another problem
[11:49:00] <Horologium> aahh.
[11:49:30] <Horologium> should look to see if there is a software update for the board...I doubt it's been updated since I got it 6 years ago.
[11:49:47] <megal0maniac> Do you have an actual STK500 then?
[11:50:12] <CoolBear> megal0maniac: It worked out very nicely, though I had to identify it as a plain 328(not 328p), but no matter. It programs and works.
[11:51:11] <Horologium> yes, an actual real one.
[11:51:25] <Horologium> bought it as a kit along with an avrdragon for 99 dollars.
[11:51:28] <megal0maniac> CoolBear: You can add the other one just as easily. Might save you some time later
[11:51:50] <megal0maniac> Horologium: I'm thinking it might be time for me to get an avrdragon
[11:52:03] <Horologium> not even sure where my dragon is anymore.
[11:52:08] <Horologium> could probably find it if I looked.
[11:52:14] <Horologium> only used it once.
[11:52:26] <Horologium> and I use my old dapa programmer more than the stk500.
[11:53:04] <CoolBear> megal0maniac: It's in the list, it just refuses to work(claims wrong device signature) when on the 328p, it's not something I'd spend alot of time on right now.
[11:53:13] <Horologium> well pooh...should get pants on and go load up the truck...taking a bunch of STUFF to the localish maker/hackerspace today.
[11:53:15] <megal0maniac> Richard_Cavell likes dapa too :)
[11:53:29] <Horologium> long as you have a parallel port the dapa just works.
[11:53:46] <Horologium> I used a 74ls125 for mine.
[11:54:04] <megal0maniac> CoolBear: Then you don't have a 328p ;) The last two bytes of the signature differ
[11:54:14] <Horologium> fits inside a db25 hood..just 10wire ribbon feeds out the back.
[11:54:22] <megal0maniac> One is 0F and the other 14. Can't remember which is which
[11:54:30] <Horologium> ok..have fun.
[11:54:47] <megal0maniac> Horologium: Anything could fit in a DB25 hood :/
[11:54:54] <megal0maniac> OndraSter_: You there?
[11:55:09] <CoolBear> megal0maniac: Strange, they are marked 328-pu (or is this not the P we are looking for?)
[11:56:00] <megal0maniac> The -pu is the package. The "328p" would be atmega328p-pu. PU is PDIP and AU is TQFP, I think
[11:56:14] <CoolBear> Ah, my bad then, problem solved.
[13:07:21] <RikusW> /join #hackvana
[13:07:38] <hackvana> It happens a lot.
[13:07:41] <RikusW> heh
[13:07:58] <RikusW> I put a space in front...
[13:09:08] * RikusW put it on auto join
[13:09:22] <RikusW> it was on my linux box...
[13:31:42] <Powderhound> Can anyone explain to me where the VP pin is supposed to go? http://www.digikey.com/product-detail/en/RT9519BGQW/1028-1193-1-ND/3078196
[13:52:44] <Tom_itx> is says external power source on P2
[13:53:16] <Tom_itx> This pin must be provided a regulated voltage from 2.95V to 3.6V by external
[13:53:16] <Tom_itx> power.
[13:53:24] <Tom_itx> you didn't read much did you?
[14:08:00] <Powderhound> Tom_itx: I did read it, but I wasn't sure where that external power would come from, given that its a battery protection circuit and likely won't be plugged in
[14:08:25] <Powderhound> (at all times)
[14:14:12] <Tom_itx> is it a voltage reference for the thermistor?
[14:14:34] <Tom_itx> so the pack doesn't overheat under charge
[14:23:53] <megal0maniac> Dammit
[14:24:08] <megal0maniac> I thought I'd be able to increase voltages with this http://www.ebay.com/itm/251066005460
[14:24:26] <megal0maniac> As in buck-boost. But it's just a 3A adjustable linear vreg
[14:24:50] <megal0maniac> "Step down". I should learn to read :/
[14:26:49] <megal0maniac> These things are really neat, though http://www.ebay.com/itm/251151932798
[14:26:49] <megal0maniac> They have rx/tx lines on them too, and no documentation. Might have to poke around to see if it's of any use :)
[14:27:46] <RikusW> get the ds for chips on it
[14:28:21] <megal0maniac> RikusW: It just looks like a 3 digit 7seg on a PCB
[14:28:38] <megal0maniac> No visible chips, unless I remove the 7seg
[14:29:04] <RikusW> poke around with dmm set to diode test
[14:29:24] <RikusW> usually there is a common anode/cathode
[14:29:34] <RikusW> how many pins are there ?
[14:29:48] <RikusW> or only rx/tx ?
[14:30:58] <megal0maniac> There are 12 for the display, another 6 on the one side (2 of which are labled rx and tx) and then three on the other side for vcc, gnd and... well, the input voltage
[14:31:28] <RikusW> hey, its a -> "1pcs Blue LED Panel Meter Digital Voltmeter DC 0-99.9V"
[14:31:35] <megal0maniac> If I buy myself one, I'll pull the display off and have a look :)
[14:32:01] * RikusW guess the blue wire measures V
[14:32:09] * megal0maniac nods
[14:33:15] <megal0maniac> VCC takes anything from 5V to 30V, so there's obviously an internal reference
[14:33:44] <megal0maniac> The 3 wires are all you really need, but naturally I want to know what the rx and tx do :)
[14:33:52] * RikusW knows the LM2596 buck ic
[14:34:23] <megal0maniac> It's nice. It's warm. And stupid me thinks "buck-boost" when he reads "buck"
[14:34:35] <megal0maniac> You in bloem?
[14:35:27] <RikusW> no
[14:35:34] <RikusW> gprs
[14:35:51] <RikusW> and XP pc, because I fried my Linux box mb :S :(
[14:35:52] * megal0maniac applauds ebay for not being full of scripts
[14:36:22] <RikusW> southbridge is vcc shorted to gnd
[14:36:41] <megal0maniac> Eh.. Unlucky for you :(
[14:37:33] <RikusW> it happened when I plugged in my 1tb external... I connected its psu to the power on the back of the pc, and pc went dead
[14:37:37] <asteve> well, my charlieplexed xmas tree was a big hit, thanks for everyones help yesterday
[14:37:46] <RikusW> wanted to have it on ups for repartitioning
[14:38:09] <RikusW> still not sure why it happened
[14:38:17] <RikusW> but the 1tb is ok...
[14:40:19] <megal0maniac_> Netsplit?
[14:40:39] <RikusW> didn't see any
[14:40:50] <megal0maniac_> Odd. Oh well :)
[15:23:03] <Powderhound> Tom_itx: (sorry about the delay, had to run into a group meeting) it definitely makes sense that it would be a reference for the thermistor, I'm just not sure where that reference is supposed to come from. During charging, it could be powered from the source, but on battery power, would it be based on the sys voltage (aka post regulator)?
[15:27:28] <Tom_itx> you're not charging it on battery power either. I think it's to prevent the cells from overheating under charge
[15:29:01] <Powderhound> Got it. Thanks for helping!
[15:31:08] <asteve> Tom_itx: thanks for the help yesterday: http://i.imgur.com/hLBGN.jpg
[15:32:06] <Tom_itx> i saw you got it working
[15:33:40] <megal0maniac_> asteve: What the heck is going on there? :)
[15:35:00] <asteve> megal0maniac_: it's a charlieplexed xmas tree speed controlled by the potentiometer
[15:38:54] <megal0maniac_> Nice. Looks very festive
[15:41:56] <OndraSter> heh
[15:43:03] <megal0maniac_> OndraSter!
[15:43:14] <megal0maniac_> Can I have an xboard mini for Christmas?
[15:44:22] <OndraSter> I doubt that the post would deliver it before new years eve
[15:44:24] <OndraSter> they are overloaded
[15:44:31] <megal0maniac_> This is true
[15:44:44] <OndraSter> actually they barely work between 24 - 31 :D
[15:45:07] <megal0maniac_> I ordered my Chinese stuff just in time
[15:45:10] <OndraSter> heh
[15:45:23] <OndraSter> I ordered the czech stuff (free shipping via post/PPL! lol) like 2 days ago
[15:45:27] <OndraSter> I hope they shipped it already
[15:45:28] <megal0maniac_> And DX agreed to re-ship. I paid in the $1.70 for tracking though
[15:45:29] <Tom_itx> i think i did too
[15:45:30] <OndraSter> I used PPL of course
[15:45:37] <Tom_itx> got mouser yesterday
[15:45:53] <OndraSter> 'muricans.
[15:45:53] <megal0maniac_> Tom_itx: Mouser doesn't use hong kong post ;)
[15:46:10] <Tom_itx> no but my other one does
[15:46:23] <megal0maniac_> OndraSter: So, where are you at? Do you have an oven? Do you have an xboard?
[15:46:24] <Tom_itx> they actually processed and showed it as shipped the next day
[15:46:36] <megal0maniac_> Tom_itx: When was that?
[15:46:55] <OndraSter> I am at home; I do have an oven, I don't have the controller for it; I do have an xboard, one assembled, the rest not assembled yet
[15:47:02] <Tom_itx> 9th
[15:47:17] <Tom_itx> put some pies in the oven
[15:47:20] <megal0maniac_> Hmmm... Best of luck to you
[15:47:37] <Tom_itx> i'm not worried about it
[15:47:42] <OndraSter> I have got even two stellaris launchpads :D
[15:48:02] <megal0maniac_> I loaned mine to a friend. Wasn't sure what to do with it
[15:48:14] <megal0maniac_> The msp430 one as well
[15:48:50] <megal0maniac_> Almost ordered a Teensy3, but realised that I'd just be buying ANOTHER dev board that I didn't know how to use
[15:49:14] <megal0maniac_> OndraSter: Same story with the xboard, but don't remind me
[15:49:31] <asteve> I have an msp430 that I am certain has a factory defect
[15:49:48] <megal0maniac_> How so?
[15:51:30] <asteve> I think it was related to the power circuit, I think it had a risen ground plane because I would have very strange events happen when I was demoing to the TA
[15:51:41] <asteve> it was an msp430 dev board
[15:51:48] <OndraSter_> haven't even opened the sealed package :(
[15:51:50] <OndraSter_> I have got here even MSP430 launchpad
[15:51:56] <OndraSter_> (swap those lines)
[15:52:13] <asteve> msp430 is supposed to be cool because of the low power but I think the design is inferior to the atmega
[15:52:53] <OndraSter_> yeah
[15:52:55] <megal0maniac_> the atmega range are actually pretty damn expensive
[15:53:01] <OndraSter_> megas are expensive
[15:53:11] <OndraSter_> luckily there is xmega which is cheaper and offers more bang for the buck
[15:53:24] <megal0maniac_> "but xmegas are much better value for money" says OndraSter_ ;)
[15:53:29] <OndraSter_> :D
[15:53:44] <megal0maniac_> You're very predictable
[15:53:49] <OndraSter_> yeah
[15:53:52] <OndraSter_> because I love those chpis
[15:53:52] <megal0maniac_> But I do agree
[15:53:54] <OndraSter_> chips
[15:53:59] <OndraSter_> there is one issue though
[15:53:59] <OndraSter_> two
[15:54:02] <OndraSter_> a) no SMALL packages
[15:54:07] <OndraSter_> b) no cheapest options
[15:54:13] <OndraSter_> they start at maybe $1.4 at volumes
[15:54:16] <OndraSter_> which is just too much
[15:54:36] <OndraSter_> something like 4 analog pins/1 DAC, 2 DMA channels, 1 SPI/UART
[15:54:40] <OndraSter_> maybe 8 or 10 pins
[15:54:50] <OndraSter_> 8K flash, 2K RAM
[15:54:58] <OndraSter_> (ok, maybe 1K RAM, RAM is expensive on space)
[15:55:09] <OndraSter_> 1b of RAM is 6 or 8 transistors :(
[15:55:28] <OndraSter_> I need to develop new way of SRAM for less transistors
[15:55:38] <megal0maniac_> Wow. That's... a lot
[15:55:51] <megal0maniac_> No wonder sram costs what it does :)
[15:56:05] <OndraSter_> 4 main storage transistors + 2 extra access transistors
[15:56:56] <OndraSter_> maybe 1T-SRAM
[15:57:02] <OndraSter_> from MoSy or w/e was their name
[15:59:21] <megal0maniac_> Pics of xboard :)
[15:59:34] <asteve> 1TB of SRAM?
[15:59:42] <asteve> in a microcontroller? that would be silly
[16:02:23] <OndraSter_> I sait 1T-SRAM
[16:02:27] <OndraSter_> aka one transistors SRAM
[16:02:30] <OndraSter_> transistor*
[16:02:40] <asteve> I know
[16:02:52] <asteve> I got jokes and such
[16:03:15] <OndraSter_> only this megal0maniac_ http://clip2net.com/page/m12051/37705440
[16:03:20] <OndraSter_> asteve, oh...
[16:03:22] <OndraSter_> sorry :D
[16:04:07] <OndraSter_> I am thinking about going for RGB LED next time, getting rid of the extra analog pins and putting the RGB LED there (I love the RGB LED on the stellaris launchpad lol) and also some 1MB SPI flash..
[16:04:19] <OndraSter_> and one user button
[16:04:28] <OndraSter_> although, not on the analog pins
[16:04:33] <OndraSter_> analog pins don't have PWM outputs
[16:29:11] <megal0maniac_> Looks good enough ;)
[16:29:29] <megal0maniac_> I'll be waiting
[16:29:32] <OndraSter_> :D
[16:29:33] <megal0maniac_> G'night
[16:29:36] <OndraSter_> gn
[16:30:01] <OndraSter_> I am also thinking about doing "teacher's" shield - bunch of LED (matrices) on shift registers with few buttons and LEDs and what not
[16:30:23] <OndraSter_> bargraph et
[16:30:24] <OndraSter_> c
[16:31:12] <megal0maniac_> :)
[18:17:07] <Tom_itx> ok, 2 pins are shot on this level converter but i only need 4 so i can route the schematic to use the good ones which i think i already did
[18:17:38] <Tom_itx> making a lcd sd encoder board for the 2560
[18:17:46] <Tom_itx> the sd needs the level shifter
[18:21:56] <OndraSter> Tom_itx, if you would have got my xboard it has got
[18:21:59] <OndraSter> a) 3.3V IO
[18:22:02] <OndraSter> b) SD card slot :)
[18:22:34] <Tom_itx> but it doesn't run marlin reprap firmware
[18:22:41] <OndraSter> nope :(
[18:24:16] <Tom_itx> i think i recently figured out why my first sd board didn't work
[18:24:28] <Tom_itx> it was the max chip i used
[18:24:36] <Tom_itx> these level converters are awesome
[18:26:04] <Tom_itx> http://www2.electronicproducts.com/Image_of_the_Day_Suomi_satellite_shows_Earth_in_black-article-imjb_suomi_black_pearl_01_dec2012-html.aspx
[18:29:09] <Tom_itx> have you sold a few?
[19:36:42] <slidercrank> inflex, I got my OLED display (BL12864GEPNH$) working. It turned out the display supports three modes: 8080, 6800 (Motorola) and SPI. It's undocumented (not mentioned in the datasheet) how to switch between the modes. You have to write to the manufacturer. So it's selected by (re)soldering two resistors. Depending on how you solder 4 of them you can choose a specific mode
[19:40:41] <DooMMasteR> hi, has anyone here ever used u8glib?
[19:49:35] <Horologium> never heard of it DooMMasteR
[19:50:16] <Horologium> slidercrank, sounds like they want to sell 3 different models
[19:50:29] <Horologium> with the only difference being the resistors.
[19:52:35] <slidercrank> Horologium, I thought they wanted to track how and by whom their products are used. So when you write them, they first ask you who are, what company you work for, where you obtained their product from, what kind of food you like (well, not the last one) and then provide this info. Which MUST BE in the datasheet available without contacting them
[19:52:55] <slidercrank> *ask who you are
[19:53:46] <slidercrank> Horologium, but your version is plausible
[20:52:42] <inflex> lo there folks, lo Tom_itx, well done slidercrank
[21:01:09] <slidercrank> inflex, if you remember I started recently studying electronics and managed to blink with a led. So now I'm done with an oled display. I want to play a wav file now. For this I need to connect a speaker to my board somehow
[21:05:45] <slidercrank> inflex, do you have such an experience? I know I can't just connect a speaker to a pin of my uC. The signal must be amplified. But can I do it anyway? Let the volume be low for now (while I'm testing PWM to play a wav file). I have an 8 Ohm speaker. What resistor nominal should I use to connect a speaker (without amplifying)? Or am I doing it wrong?
[21:06:50] <inflex> you won't be able to direct-connect simply because the pins won't have enough drive to handle the near-short-circuit impedence; you could try straight into a high impedence headphone (20k or such) but put a high-pass filter on there as well
[21:07:23] <inflex> ( just a cap + resistor ), it'll likely sound terrible and you'll have no volume control, but it'd be a test.
[21:07:39] <inflex> erm... LOW pass filter I mean.
[21:08:13] <inflex> next step is to just drive a MOSFET, effectively what you'd be doing is creating a class-D amp
[21:09:11] <slidercrank> and how to choose a cap and resistor? How are their nominals calculated?
[21:10:55] <slidercrank> but thank you for this information. a class-D amp is what I need. I know a ready-to-use chips exist for this purpose
[21:11:04] <inflex> np :)
[21:20:00] <slidercrank> inflex, http://atmega32-avr.com/wp-content/uploads/2012/11/avr-project2-ckt-dia.jpg you mean this scheme, right?
[21:26:29] <Tom_itx> lo inflex
[21:26:43] <inflex> slidercrank: yep, that's it at its simplest.
[21:27:52] <Tom_itx> or use a small piezo