#avr | Logs for 2014-04-01

Back
[01:31:36] <Guest20532> my micro is behaving weird. i figured out if i tap the crystal the micro reboots/crashes
[01:31:44] <Guest20532> are they so sensitive to vibrations?
[01:32:05] <Guest20532> im not even putting force to the tap. just a touch and it reboots
[01:34:18] <Rokko> stop touching it with a hammer.
[01:34:40] <Guest20532> Im using a breadboard. maybe if i solder the crystal it will work
[01:34:48] <Rokko> yes
[01:34:59] <Rokko> breadbaords are awful for everything.
[02:23:10] <jacekowski> Guest20532: breadboards have so much capacitance that crystals barely work
[02:23:24] <jacekowski> Guest20532: what micro is it?
[02:34:24] <Guest20532> jacekowski, yeah its not doing well with 4cm wire and breaboard fitting
[02:34:36] <Guest20532> atmega1284P
[02:34:57] <Guest20532> 16Mhz crystal
[02:35:31] <Guest20532> Arent there breadboard alternatives that do bettwe connections?
[02:35:37] <Guest20532> better
[02:39:21] <jacekowski> Guest20532: did you set it to full swing mode?
[02:41:26] <Guest20532> Dunno what that is but iirc my oscillator or caps where just on the edge of being out of spec
[02:42:11] <Guest20532> im just gonna solder it now and hopefully it will work better
[02:53:06] <Thrashbarg> http://kaput.homeunix.org/~thrashbarg/ATMegaDSP.mp3 <-- I'll spam this here too. It's off a 20MHz ATmega168P
[02:56:28] <Rokko> out of the PWM?
[02:56:45] <Thrashbarg> no it's got a 12-bit SPI DAC on it
[02:57:15] <Rokko> 8 or 16 bit maths?
[02:57:18] <Rokko> lookup tables?
[02:57:31] <Thrashbarg> 16 bit * 16 bit = 24 bit maths
[02:57:41] <Thrashbarg> then shifted back down to 16 bit
[02:57:48] <Thrashbarg> integer
[02:57:59] <Rokko> 16bit*16bit = 32 bit
[02:58:05] <Rokko> not 24
[02:58:08] <Thrashbarg> I used my own function
[02:59:04] <Rokko> sine/square/triangle tables? NCO?
[02:59:35] <Thrashbarg> just a frequency table
[02:59:47] <Thrashbarg> square is derived from sawtooth
[03:02:08] <jacekowski> Guest20532: fuse settings
[03:02:25] <jacekowski> Guest20532: there is a fuse to run it in full swing mode
[03:02:25] <Guest20532> i soldered the connection to my crystal oscillator directly on the DIP pins. can i connect the capacitors trought the breadboard to ground or do they need good connection too?
[03:02:39] <jacekowski> Guest20532: breadboard has enough capacitance
[03:02:50] <jacekowski> Guest20532: i would not add external capacitor
[03:02:51] <jacekowski> s
[03:03:07] <Guest20532> really? i use 22pf caps and a 30pf crystal
[03:03:40] <Guest20532> ill try it
[03:24:12] <jacekowski> Guest20532: breadboard will give you ~20pf
[03:42:07] <Rokko> for free
[04:18:15] <Guest20532> Im measuring a thermistors resistance and my divider resistor is only 680ohm will this ruin my micro?
[04:34:39] <Rokko> just don't exceed the maximum voltages on the atmel pin
[04:34:55] <Rokko> it's in the data sheet for your device
[04:38:54] <Guest20532> Rokko but it should be Vcc..?
[04:39:09] <Rokko> yeah don't exceed vcc
[04:39:12] <Guest20532> so i could short vcc to a pin according to datasheet
[04:39:19] <Guest20532> ok!
[04:39:49] <Rokko> ohhhh hang on don't be so hasy
[04:39:52] <Rokko> hasty
[04:40:01] <Rokko> don't use short and vcc in the same sentence
[04:40:11] <Rokko> but yes
[04:40:16] <Guest20532> its not going to GND but a ADC
[04:40:36] <Guest20532> sry i didnt mean to scare you
[04:41:09] <Rokko> but yes, it's normal to pull a pin high by connecting it to Vcc and low by connecting it to GND
[06:41:37] <antto> a device which connects via usb/ftdi to the computer, assuming that the VCP driver is installed - how do you figure out the port name on osx?
[06:42:37] <antto> on my linux, it happens to be /dev/ttyUSB0 usually, but i know it will be something uglier on osx
[11:51:43] <jadew> OndraSter, hey, are you there?
[11:56:38] <OndraSter> maybe
[12:02:23] <jadew> OndraSter, any idea if mouser ships from CZ?
[12:02:33] <jadew> do you have to pay VAT on what you get from them?
[12:02:49] <jadew> http://ro.mouser.com/contact/
[12:02:56] <jadew> they seem to be located in CZ
[12:04:00] <OndraSter> mausel.eu ships to CZ
[12:04:11] <OndraSter> mouser ships to CZ of course, but they ship from the US
[12:04:36] <OndraSter> mausel.eu is better - no minimal order to not pay $60 shipping
[12:04:37] <jadew> but on that site they say they are located in CZ
[12:04:40] <OndraSter> no idea
[12:04:43] <OndraSter> but they do not have any stocks here
[12:04:47] <jadew> ah...
[12:04:48] <OndraSter> as far as I know
[12:04:48] <jadew> ok
[12:04:55] <jadew> sad
[12:04:59] <OndraSter> :P
[12:05:06] <OndraSter> it might be just simply having their east-european support in CZE
[12:05:12] <OndraSter> which is fairly surprising, it is usually slovakia or poland :P
[12:05:13] <jadew> yeah, probably
[12:05:41] <jadew> alright, then I'll keep buying from china
[12:05:54] <OndraSter> :P
[12:06:24] <jadew> for some reason nothing get's charged extra and as of recently all the packages get delivered to my door :)
[12:06:34] <jadew> *gets
[12:06:56] <OndraSter> :P