#avr | Logs for 2012-05-02

Back
[02:54:51] <Casper> !seen rikusw
[02:54:52] <tobbor> RikusW was last seen in #avr on May 01 10:38 2012
[03:29:28] <grummund> inflex: that's awful.
[03:33:53] <inflex> grummund: I agree :(
[04:22:59] <CapnKernel> Good news: I have a new visa, so I'll be heading off to China again.
[04:32:48] <specing> CapnKernel: Yay
[04:32:55] <specing> CapnKernel: When?
[04:33:33] <CapnKernel> Late this month. Have to get the plane ticket
[06:24:30] <CapnKernel> cyanide: yo
[06:24:32] <CapnKernel> I have some good news.
[06:39:27] <Tom_itx> we like good news
[06:42:12] <DarkSector> go on?
[06:42:43] <Tom_itx> <CapnKernel> Good news: I have a new visa, so I'll be heading off to China again.
[06:43:03] <Tom_itx> the aussies have had him long enough
[06:43:14] <CapnKernel> Why thanks Tom, I couldn't have said it better myself.
[06:44:12] <DarkSector> haha
[06:44:31] <Tom_itx> i bet he checks his papers closer this time
[06:44:33] <DarkSector> I have a visa for China, never had the stones to visit it.
[06:50:35] <CapnKernel> I bet I will Tom.
[10:43:26] <OndraSter> guys
[10:43:31] <OndraSter> anybody ever used 74HC4051
[10:44:00] <OndraSter> I need to "switch" between 3 different analog outputs to one global output connector
[10:44:11] <OndraSter> I am trying to read up datasheets on the 4051
[10:44:26] <OndraSter> I don't care about Ron since it will be fed to opamp as a voltage follower
[10:48:02] <vectory> OndraSter: metaquestion much?
[10:48:11] <OndraSter> what is metaquestion?
[10:48:22] <OndraSter> I would like something like the 4051 but with I2C/SPI switch :)
[10:48:33] <OndraSter> (SPI preferably actually)
[10:48:38] <vectory> has anybody ever ... can someone help me ...
[10:48:47] <OndraSter> oh
[10:48:59] <OndraSter> just asking if somebody ever used it :)
[10:49:05] <OndraSter> to know whether there are some problems with it etc
[10:49:36] <vectory> oh, thought you had a specific problem with it
[10:49:42] <OndraSter> nope
[10:51:31] <vectory> im reading yuo should put a small nF cap on the inputs
[11:29:59] -zelazny.freenode.net:#avr- [freenode-info] please register your nickname...don't forget to auto-identify! http://freenode.net/faq.shtml#nicksetup
[12:10:47] <buhman> am I /required/ to connect Vdd and GND to the ISP to do program an atmega?
[12:12:25] <ThersiT> ground for sure
[12:13:33] <karlp> vdd is definitely optional, as long as it's getting power from somewhere
[12:13:58] <buhman> awesome
[12:14:18] <buhman> vdd is the one I really didn't want to connect :D
[12:15:11] <ThersiT> I don't have it connected on mine.
[12:18:14] <buhman> hmm, mine keeps flashing like it's not connected...
[12:19:10] <buhman> appears that mine pretends to require it :S
[12:20:56] <ThersiT> flashing? Are you getting any error messages?
[12:21:45] <ThersiT> What's your programmer and what program are you using to program with?
[12:23:15] <OndraSter> actually, some programmers require vdd to be connected, since it is connected to the ADC
[12:24:57] <karlp> what does an ADC have to do with programming?
[12:25:06] <OndraSter> it checks for target voltage
[12:25:10] <OndraSter> (forgot the last line)
[12:25:26] <karlp> tell your programmer to stop doing that.
[12:25:49] <OndraSter> I know that AVR Dragon does that and in AVR Studio it requires you to have it connected
[12:25:52] <OndraSter> not sure how with avrdude
[12:25:58] <karlp> avrdude certainly doesn't.
[12:26:10] <karlp> because that's fairly braindead
[12:30:06] <buhman> sorry; yeah there's a red light that flashes whenever I disconnect Vdd
[12:30:45] <buhman> then when I tell avrdude to do something, I'm told: http://sprunge.us/FVVi
[12:31:04] <buhman> I reconnect Vdd, and it works just fine
[12:31:29] <buhman> I have a http://www.pololu.com/catalog/product/1300
[12:31:30] <Casper> it might not be avrdude
[12:31:31] <Casper> but
[12:31:35] <Casper> the programmer itself
[12:31:36] <karlp> sounds like your programmer is brainedead then
[12:31:54] <buhman> wouldn't surprise me
[12:32:10] <karlp> so, connect vdd
[12:32:16] <buhman> and I did :D
[12:32:30] <Casper> actually it could be to set the right communication voltage
[12:32:32] <karlp> some programmers expect to be powered by the target,
[12:32:39] <karlp> some allow to power the target,
[12:32:47] <Casper> because those universal programmers one usually have a 3V input tolerance but output 5V
[12:32:57] <Casper> which is wrong to do
[12:38:07] <buhman> so before I blow something up, I have my new controller set up like this, http://absdev.org/atmega1284p-breadboard.jpg and I can flash that LED on PD7. So what I'm worried about now is doing the crystal properly. I'm confident I have the crystal on the right pins, and then I saw someone putting caps (same value as the crystal resonation) between it and ground, which I've also done. So with something like that, I'd want to set the fuse for something like "Ext
[12:38:14] <buhman> (was that cut off?)
[12:46:41] <OndraSter> buhman, yes, it is cut off lol
[12:46:45] <OndraSter> at "ext
[12:47:34] <buhman> something like "Ext. Crystal Osc.; Frequency 8.0- MHz; Start-up time: 16K CK + 65 ms; [CKSEL=1111 SUT=11]" right?
[12:47:41] <OndraSter> yeah
[12:47:55] <buhman> yes and in yes pick that one?
[12:47:57] <buhman> as in*
[12:48:11] <OndraSter> depends on what startup time do you want, but yes, you can use this :)
[12:48:24] <buhman> longest startup time is safest, yes?
[12:48:37] <OndraSter> yes
[12:48:39] <buhman> I don't really care about 65ms vs 10ms vs 0ms :P
[12:48:43] <OndraSter> but with xtal it shouldn't matter that much really
[12:49:02] <OndraSter> with external square wave it does matter since it might take few msecs to stabilize
[12:58:03] <Essobi> Soo.... okay, both my atmega328p and my ARM board are using 5V TTL logic. Any suggestions on how/what to use to make them talk to each other? I'm going to have to write the ARM side of it, since it's running NetBSD.
[12:58:57] <buhman> SPI?
[12:59:03] <Essobi> OndraSter: I thought that was for brown-out protection from a power supply.... it's for osci stablization?
[12:59:33] <Essobi> buhman: perhaps. There's also a 1-wire driver for the arm side already writted...
[12:59:39] <Essobi> *written
[13:00:33] <OndraSter> that too
[13:01:02] <OndraSter> uart ...
[13:01:36] <OndraSter> spi requires master and slave
[13:01:48] <OndraSter> uart = anybody can talk
[13:01:52] <OndraSter> (async)
[13:05:37] <Essobi> RikusW: WHATS UP MAN
[13:06:08] <Essobi> OndraSter: Really? Just a soft uart from gpio? Hmm.
[13:06:18] <OndraSter> oh
[13:06:21] <OndraSter> soft uart
[13:06:39] <OndraSter> I am eating so I missed most of the text :)
[13:06:47] <RikusW> Essobi: not too much, haven't worked much on electronics stuff lately..
[13:07:02] <Essobi> Same here..
[13:07:16] <Essobi> All of my gear went missing during the move a few months ago. :(
[13:07:38] <RikusW> Essobi: I have coded most of the dW soft uart, but it (hopefully not) still needs to be debugged...
[13:07:58] <Essobi> All except that g'damned ARM920T and a tube of blank 328ps.
[13:08:13] <RikusW> and a lot of PC side software will need to be written for it too....
[13:08:21] <Essobi> right
[13:08:36] <Essobi> OndraSter: RECAP: Soo.... okay, both my atmega328p and my ARM board are using 5V TTL logic. Any suggestions on how/what to use to make them talk to each other? I'm going to have to write the ARM side of it, since it's running NetBSD.
[13:09:04] <OndraSter> no hardware uart?
[13:09:24] <Essobi> I've got 1 hardware uart on the board, but I'd like to use it for the console. :D
[13:09:29] <RikusW> Essobi: my RavrProgQt app seems more or less stable for ISP/JTAG HV programming autodetect is not working right...
[13:09:30] <OndraSter> oh
[13:09:44] <Essobi> RikusW: Interesting.
[13:09:52] <Essobi> RikusW: I've got a JTAG on my arm board.
[13:10:09] <RikusW> Essobi: its only for ATmega JTAG...
[13:10:18] <Essobi> RikusW: Booooo.
[13:10:27] <Essobi> RikusW: HV progging is cool thou. :D
[13:10:29] <RikusW> and only using Atmel programmers...
[13:10:46] <Essobi> RikusW: Ah, I hadn't looked at it.
[13:10:47] <RikusW> it does work but you need to select the avr first...
[13:11:07] <Essobi> RikusW: I rebuilt my DAPA the other night, and setup a bare chip again. *sigh*
[13:11:14] <RikusW> to set the rigth protocol data to the programmer....
[13:11:42] <Essobi> I'd like to build a multi-drop network of some sort.
[13:11:50] <RikusW> Essobi: I do have some STK500 ISP code for m8 lying around somewhere
[13:11:59] <Essobi> neat
[13:12:18] <RikusW> what frequency crystal do you use ?
[13:12:27] <RikusW> or do you have AS4 ?
[13:12:35] <RikusW> I'll look around for it
[13:12:57] <Essobi> I didn't have any crystals laying around. Just a tube of 328p and DAPA. :D
[13:13:19] <Essobi> Hmm.
[13:13:27] <Essobi> RS-485 multidrop bus maybe?
[13:13:33] <RikusW> Essobi: or you can just use the bootloader code on rue's site, I've done that for m8 but easily portable to m328, only the uart code
[13:13:40] <Essobi> I need to order s'more gear anyways.
[13:13:45] <RikusW> needs porting
[13:13:52] <Essobi> Oh?
[13:13:56] <Essobi> ASM or C?
[13:14:01] <RikusW> asm
[13:14:08] <Essobi> *shudder*
[13:14:19] <Essobi> what's rue's url?
[13:14:27] <RikusW> http://www.ruemohr.org -> code -> blm8
[13:15:03] <RikusW> its only a few uart registers, and you need to make sure to use in/out and lds/sts correctly...
[13:15:43] <RikusW> its very fast even compared to a stk500 programmer
[13:15:52] <RikusW> bootloader is _fast_
[13:16:07] <RikusW> like reading a m8 in under 2seconds
[13:58:37] <Essobi> Aww he left.
[15:15:41] <OndraSter> is digikey serious? 1pcs of AD5620 is $5.98, 100pcs is $4.39/pcs while on analog.com themselves it is $2.83/100pcs?!
[15:17:03] <OndraSter> I just had to choose Analog Devices parts... which are not available on mouser :X
[15:18:47] <specing> OndraSter: typically, distributor price = 2 * man. price
[15:18:55] <OndraSter> :/
[15:19:01] <OndraSter> I can't find any DDS on mouser actually
[15:19:22] <OndraSter> when I search either for DDS it brings up a lot of junk (PICs ?! why the hell) and when I search for synthetizer, it brings 0 results
[15:19:25] <specing> If you need 1000 of them, you can order directly from analog
[15:19:28] <OndraSter> I know
[15:19:34] <OndraSter> some parts are even @ 100pcs available
[15:19:40] <OndraSter> I wanted to do first run of 10 boards :)
[15:20:31] <specing> How about if you do one board, check to make sure it works, then do the 100+ run
[15:20:43] <OndraSter> 100+ run... unless I get enough pre-orders, not sure, who would pay for it
[15:20:57] <OndraSter> I can do one board just fine, I ordered samples of the chips I will need
[15:21:03] <specing> How many preorders do you currently have?
[15:21:09] <OndraSter> zero ;D
[15:21:13] <specing> hehe
[15:21:18] <OndraSter> I haven't spoken about it anywhere public.. yet
[15:26:13] <OndraSter> arrgh
[15:26:21] <Steffanx> ...
[15:26:21] <OndraSter> Y U NO AD OR ALTERA PARTS, MOUSER!
[15:26:27] <Steffanx> uh?
[15:26:32] <OndraSter> :P
[15:26:40] <OndraSter> why there are no Analog Devices or Altera parts on Mouser?
[15:26:42] <OndraSter> :(
[15:26:51] <OndraSter> the only two companies I have found out to be missing so far
[15:28:25] <specing> Why is the shipping 40$?
[15:28:36] <specing> Is a more serious question
[15:30:07] <OndraSter> that too
[15:30:17] <OndraSter> that's why I wanted to do 10 boards run - should fit into 10€ :P
[15:30:18] <OndraSter> err
[15:30:19] <OndraSter> 150€
[15:31:48] <specing> I mean wtf, their UPS rate is $80
[15:32:05] <specing> Farnell only charged me like.. $8
[15:32:31] <OndraSter> Farnell is in the UK
[15:33:15] <specing> Why isn't there a distributor located in China?
[15:33:27] <specing> Suddenly, free shipping everywhere!
[15:33:30] <OndraSter> capnkernel!
[15:33:34] <OndraSter> anyway
[15:33:40] <OndraSter> guess how much asks Farnell for ONE AD5620
[15:33:40] <specing> He is only doijgn PCBs
[15:33:43] <OndraSter> now
[15:33:50] <OndraSter> when he gets back to Shenzen..
[15:34:33] <OndraSter> (ok, no reply)
[15:34:38] <OndraSter> FARNELL WANTS $9.9 FOR ONE AD5620
[15:34:50] <OndraSter> or $8.9 when 100 pieces order
[15:35:01] <OndraSter> did they shat their pants
[15:35:18] <OndraSter> (sorry, can't say it anyway else)
[15:35:23] <OndraSter> any other way*
[15:46:34] <specing> This is farnell when you look at its prices: http://ragefac.es/100
[15:57:07] <OndraSter> lol specing