#avr | Logs for 2012-05-16

Back
[03:35:36] <Valen> geez you loose your install and you forget all the #'s you logged into by default
[03:37:12] <Valen> Got a question, I have a double insulated device(orbital sander) (so no need for isolation) that I want to hack a brushless motor into, I'm thinking something in the 100-200W range, will suffice. I'd like to use off the shelf motors and controllers etc so I'm after a tiny cheap 240Vac > 12-24Vdc power supply
[03:37:19] <Valen> any ideas?
[03:51:48] <Tom_itx> Valen, do they still make electric weed eaters? those were 12v iirc
[03:52:09] <Tom_itx> not much else comes to mind off hand
[04:16:19] <Valen> I was hoping for some off the shelf module
[04:17:09] <Valen> otherwise I'll need to use an external power brick and that'll take the edge off some
[06:20:26] <Sordna> Valen, if you only need 200W, use a small PC power supply.
[08:41:40] <razec> hi all
[09:08:58] <rue_mohr> I dont think you can get the full wattage off just one voltage on ANY suppy
[09:09:34] <rue_mohr> you would need 17A, and iirc, you usually can get 12A off the 12V line
[09:09:50] <rue_mohr> sometimes only 10A
[09:34:10] <Valen> you also need a proportional load on the 5V line of a PC psu or its "12v" becomes more like 9
[10:03:54] <OndraSter> has anybody except Atmel and abcminiuser actually wrote USB stuff for xmegas?
[11:35:38] * RikusW got some of these http://www.ebay.com/itm/2PCS-NRF24L01-2-4GHz-Wireless-Transceiver-Module-/330624568455?pt=LH_DefaultDomain_0&hash=item4cfac28c87
[11:35:56] <OndraSter_> I got four :)
[11:36:32] <RikusW> OndraSter_: are they easy to use ?
[11:36:41] <OndraSter_> they should be
[11:36:48] <OndraSter_> I haven't had time to try them out yet lol
[11:37:10] <RikusW> me neither
[11:37:27] <RikusW> its not actually mine, a friend of my brother lent them to me
[11:37:48] <RikusW> probably so that I can help him interface it to my U2S board :-P
[11:38:22] <RikusW> so far I'm thinking of putting a minimalist SPI driver on the AVR and controlling all registers from the PC
[11:38:35] <RikusW> will be far easier to debug that way
[11:38:55] <OndraSter_> I've done that on my project
[11:38:59] <OndraSter_> in assembler :P
[11:39:29] <OndraSter_> then I locked all addresses below 0xC000 which is where GPU RAM starts :P
[11:40:50] <RikusW> Once I get my code working I could send it over if you'd like ?
[11:42:27] <OndraSter_> thanks, but I will be trying it most likely on Netduino :P
[11:43:14] <OndraSter_> I doubt you will be using that :D
[11:43:32] <RikusW> I don't even have one...
[11:43:40] <OndraSter_> exactly
[11:44:50] <RikusW> but the code might me portable
[11:44:53] <RikusW> *be
[11:45:36] <RikusW> what mcu is in a netduino ?
[11:46:54] <Steffanx> looks like an stm32f4
[11:47:07] <Steffanx> No not really :P
[11:47:33] <Steffanx> AT91SAM7X512
[11:47:42] <RikusW> Steffanx: have you used NRF24L01+ before ?
[11:47:54] <RikusW> or other 2.4GHz tranceivers ?
[11:47:57] <Steffanx> Uhm, I've played a little with it
[11:48:10] <Steffanx> Cheap ass nrf24l01+ modules from ebay
[11:48:22] <RikusW> yeah
[11:48:29] <OndraSter_> yes, it is at91sam7x512
[11:48:31] <OndraSter_> but it is .NET :P
[11:48:37] <RikusW> those sell at $5 for 2
[11:48:44] <RikusW> very cheap indeed
[11:48:44] <Steffanx> The netduino go seems to be stm32f4
[11:49:03] <RikusW> RS sells them at $40 !?!!
[11:49:04] <OndraSter_> I will be getting either the classic one or the one with ethernet transceiver
[11:49:13] <OndraSter_> not sure which one they will send me :)
[11:49:33] <OndraSter_> meanwhile in Redheads: http://a8.sphotos.ak.fbcdn.net/hphotos-ak-snc6/s720x720/165979_360309630695771_103308439729226_1006022_896211763_n.jpg
[11:50:09] <Steffanx> ...
[11:50:16] <Steffanx> Facebook crap
[11:50:22] <OndraSter_> OH C'MON
[11:50:28] <OndraSter_> next time I will clip2net the photos
[11:50:31] <Steffanx> :P
[11:51:15] <Steffanx> What's special about the photo?!
[11:51:19] <Steffanx> Aaaaah a girl? :P
[11:51:26] <RikusW> facebook is very slow these days... to much scripts, etc....
[11:51:38] <Steffanx> Your connection is slow :p
[11:51:44] <RikusW> that too...
[11:51:53] <RikusW> it used to be faster...
[11:53:11] <RikusW> OndraSter_: she is already taken (noticed the ring ?)
[11:53:37] <OndraSter_> RikusW, it can't be slow because of scripts, it is just photo :P
[11:53:39] <OndraSter_> hmm
[11:53:41] <OndraSter_> it can be..
[11:53:45] <OndraSter_> it can be... Lord of the rings? :D
[11:53:47] <RikusW> that one loaded ok
[11:54:05] <RikusW> but normal FB pages needs like 1.8MB or more....
[11:54:16] <RikusW> and I only have 115kbps
[11:54:29] <RikusW> gprs
[11:55:00] <OndraSter_> 115kbps gprs :o
[11:55:11] <OndraSter_> even in the overloaded Prague centre I get ~ 1 - 2Mbit on HSDPA
[11:55:19] <OndraSter_> my record is 6Mbit in one city
[11:55:20] <RikusW> and when the cell towers is overloaded it slows to a crawl
[11:55:52] <RikusW> there is 3G over here, but I'm out of range
[11:56:27] <OndraSter_> you can't have worse reception than me, that's not possible :P
[11:57:20] <RikusW> I'm like 20km from the nearest tower....
[11:59:22] * RikusW wonders how far can the NRF modules transmit ?
[12:00:00] <OndraSter_> depends on the stuff in the path
[12:00:08] <OndraSter_> it should be something similar to bluetooth I'd guess
[12:01:06] <Steffanx> sparkfun did a test with similar modules
[12:02:10] <RikusW> and how far did it go ?
[12:02:49] <Steffanx> Don't remember :P
[12:03:11] <Steffanx> There's also a more expensive version with sma connector and antenna
[12:03:37] <Steffanx> and some amplification stuff
[12:44:53] <OndraSter_> http://twitpic.com/9lr3dw
[12:44:54] <OndraSter_> :D
[12:46:53] <Steffanx> LOL OndraSter_
[15:18:02] <abcminiuser> Blarg
[15:18:10] <abcminiuser> Anyone here use the Atmel toolchain under Linux?
[15:19:14] <prpplague> abcminiuser: most people are going to use avr-gcc under linux, not the atmel provided one
[15:19:41] <abcminiuser> prpplague, I need the avr32 one working, and there's no alternative
[15:19:50] <abcminiuser> Plus Atmel one is newer
[15:20:27] <prpplague> abcminiuser: iirc there is gcc for arv32
[15:20:29] * prpplague checks
[15:20:44] <abcminiuser> prpplague, there is, from Atmel
[15:21:00] <abcminiuser> Atmel distribute their own patched version of avr-gcc and avr32-gcc, with newer device support
[15:21:09] <abcminiuser> *avr32
[15:22:23] <prpplague> abcminiuser: yea there are some generic builds for it too, but anyway, even the atmel released version is gcc so it is pretty standard
[15:22:58] <abcminiuser> prpplague, I just need the latest AVR GCC variants, the Atmel toolchain should do fine it's just not working
[15:24:24] * prpplague downloads and does a test build
[15:28:34] <RikusW> abcminiuser: I just set my PATH to include the Atmel toolchain bin directory and it worked fine
[15:28:47] <abcminiuser> RikusW, what Linux?
[15:28:52] <abcminiuser> And what toolchain version?
[15:28:57] <RikusW> that was for avr8
[15:29:04] <RikusW> Debian etch
[15:29:26] <RikusW> avr8-gnu-toolchain-3.2.3.314-linux.any.x86.tar.gz
[15:29:28] <prpplague> yea just finished installing, no issues here
[15:29:28] <abcminiuser> Aha! 3.2.3 words, 3.3.* doesn't
[15:29:38] <abcminiuser> Looks like 3.3.* builds are broken
[15:30:44] <RikusW> good to know, then I don't go to the trouble of downloading that...
[15:30:57] <abcminiuser> IIRC there's a new 3.4.* release due soon
[15:31:05] <abcminiuser> So perhaps the tools team decided to wait for that
[15:35:26] <karlp> still on 3.x?
[15:41:41] <abcminiuser> karlp, that's the Atmel version, not the gcc version
[15:41:56] <abcminiuser> Actual packaged GCC is 4.6 and 4.2 IIRC for AVR8 and AVR32
[15:42:03] <abcminiuser> Ok, old versions work, now to try thing thing...
[15:42:21] <abcminiuser> A full LUFA branch validation is ~40mins on Windows, let's see how a virtual linux does
[15:43:37] <abcminiuser> Wheee
[15:43:51] <Tom_itx> 40 min!
[15:44:10] <Tom_itx> is that your automated test?
[15:45:56] <abcminiuser> Tom_itx, mostly just build smoke tests, no unit tests yet (too much else to do to find time to set it up)
[15:46:55] <abcminiuser> A validation builds all documentation for all projects and the core, then builds all projects, demos and bootloaders, builds all bootloaders for all possible configurations, builds a test rig for each supported board to verify all APIs compile, then compiles the USB core and all modules into a test rig for all supported devices
[15:47:07] <abcminiuser> Oh, and does a static analysis on the whole codebase
[15:47:16] <Tom_itx> finished college, now where did all your time go?
[15:48:02] <OndraSter_> abcminiuser, I must say, you must know USB to the last detail? I tried reading on the USB on xmegas but... It is like there is 10 pages missing in the datasheet and the only "usable" resource is the USB DFU bootloader source :)
[15:48:16] <Tom_itx> OndraSter_ i would say he does by now
[15:49:59] <abcminiuser> OndraSter_, the XMEGA datasheet is MUCH clearer than the god-awful AVR32 ones
[15:50:12] <OndraSter_> lucky me, not messing with avr32! :P
[15:50:18] <abcminiuser> I literally cannot write a stack for the UC3C without looking at the Atmel code, the datasheet doesn't describe all the registers
[15:50:24] <abcminiuser> Or all the bugs, for that matter :P
[15:50:35] <OndraSter_> :D
[15:50:39] <abcminiuser> OndraSter_, I know the higher layer stuff pretty well, not so much the lower electrical layer
[15:51:11] <abcminiuser> Tom_itx, if you check out LUFA, run "make validate-branch" on it from the Maintenance directory
[15:51:13] <OndraSter_> the thing is - they speak about IN packets, OUT packets and SETUP packets... but nothing like how do you reply to it, how do you work with it etc - it is all upto you to figure out
[15:51:20] <abcminiuser> Make sure your PC has lots of cooling tho :P
[15:51:40] <Tom_itx> it would take an eternity on my old pcs
[15:51:42] <abcminiuser> OndraSter_, that's partly the USB spec's job
[15:52:15] <abcminiuser> Tom_itx, current branch moves out all the makefile config options to header files for each project to make them easier to manage and import into an IDE
[15:52:17] <OndraSter_> well I mean, if there is endp0 and you receive setup packet on it, how do you figure out what to put into reply etc
[15:52:32] <OndraSter_> like if you have to check the DATA0, decode it etc
[15:52:43] <abcminiuser> Next steps are to a) re-do the build system so that they can be run in parallel and b) re-do the board system so I can begin demo ports to XMEGA
[15:52:56] <abcminiuser> OndraSter_, chapter 9 of the USB 2.0 specs
[15:53:01] <OndraSter_> oh
[15:53:06] <OndraSter_> didn't try that
[15:53:29] <OndraSter_> at least that the specs are free, unlike SATA etc... I think they wanted to pay for those
[15:53:31] <abcminiuser> The USB controller just needs to tell you how to manage the endpoints, the USB specs and class specs tell you what data you need to send
[15:53:42] <OndraSter_> ah
[15:53:43] <OndraSter_> thanks
[15:53:53] <OndraSter_> bed time reading :D
[15:54:08] <OndraSter_> better than studying literature for final exams that come the week after the next one
[15:54:10] <OndraSter_> :P
[15:56:54] <abcminiuser> Gaah, now avr32-gcc can't find the AVR32 headers
[15:57:06] <abcminiuser> How do I tell GCC where the default header path is?
[15:57:56] <karlp> -I ?
[15:58:07] <karlp> without recompiling gcc, you need to do that all the time
[15:58:49] <OndraSter_> alias a32-gcc avr32-gcc -I/lib/avr32 or whatever looniks uses
[16:00:59] <abcminiuser> OndraSter_, can I alias with the same name as the app?
[16:01:13] <OndraSter_> no idea, I try to stay away from linux as possible...
[16:01:21] <OndraSter_> as far away*
[16:02:02] <OndraSter_> I even lost all my linux virtual machines when HDD failed
[16:02:07] <OndraSter_> all vmware HDDs are damaged
[16:02:14] <OndraSter_> .. were, I deleted them
[16:15:38] <abcminiuser> Arg you're shitting me
[16:15:51] <abcminiuser> Fixed it, but the old toolchain doesn't have working XMEGA support
[16:17:45] <Tom_itx> damn'd if you do and damn'd if you don't
[16:17:55] <abcminiuser_> Indeed
[16:18:05] <abcminiuser_> Ah well, I can probably grab a pre-release from work
[16:18:15] <Tom_itx> post it somewhere :D
[16:18:17] <abcminiuser_> Although it was supposed to be ready by now, it shipped for Windows in AS6
[23:00:12] <Sgt_Lemming> anyone know a decent cheap source for atmega32p's that actually has them in stock?
[23:00:53] <Casper> ebay?
[23:01:00] <Casper> or digikey?
[23:01:53] <Sgt_Lemming> digikey is out of stock till JULY >_<
[23:01:57] <Sgt_Lemming> ebay is crap
[23:05:55] <Casper> and why do you absolutelly need the 32p?
[23:06:05] <Casper> can'T another part do the job?
[23:08:08] <Sgt_Lemming> Casper, so it's compatible with arduino IDE without any fucking around
[23:08:28] <Sgt_Lemming> sorry, 328p, not 32o
[23:08:32] <Sgt_Lemming> typo
[23:09:12] <Sgt_Lemming> http://search.digikey.com/us/en/products/ATMEGA328P-PU/ATMEGA328P-PU-ND/1914589