#avr | Logs for 2012-03-08

Back
[01:55:11] <mitsakos> hello there. Does anybody know how to show the disassembler in avr studio 5 ?
[04:59:11] <CapnKernel> OndraSter_: Hi there
[04:59:20] <CapnKernel> mrfrenzy: there?
[04:59:23] <OndraSter_> hi
[04:59:27] <OndraSter_> afk 10 minutes :)
[04:59:30] <CapnKernel> np
[05:00:01] <mrfrenzy> hi CapnKernel
[05:00:04] <mrfrenzy> you got moneys
[05:07:27] <CapnKernel> mrfrenzy: Your parts were shipped today by DHL. The tracking number is 8636762805.
[05:07:37] <mrfrenzy> sweet!
[05:07:44] <CapnKernel> :-)
[05:08:02] <mrfrenzy> androidapp parcels ftw
[05:08:16] <CapnKernel> Haha, now you can "package stalk" it :-)
[05:08:25] <CapnKernel> cyanide's parts are currently in New Delhi.
[05:18:54] <CapnKernel> Really quite exciting!
[05:19:04] <OndraSter_> back
[05:20:20] <RikusW> CapnKernel: What would typical shipping fees be to say South Africa ?
[05:25:17] <OndraSter_> CapnKernel, so do you have some quote on at(x)mega prices? :)
[05:35:29] <cyanide> left new delhi lol
[05:36:01] <cyanide> funny though. my parcels from the us land directly in mumbai and are delivered the same day
[05:36:23] <cyanide> so it takes dhl the same time to ship from us to india as it does for china to india :)
[05:36:28] <cyanide> 4 days
[05:36:45] <cyanide> CapnKernel, what value did you quote?
[05:41:33] <RikusW> seems he is asleep ;)
[05:42:27] <elektrinis> why cant I find an ESR characteristics in ceramic cap manufacturer datasheets?
[06:59:40] <ziph> elektrinis: Because they like to screw with you.
[07:00:08] <ziph> elektrinis: What do you need, electrolytic low uF's?
[07:11:05] <CapnKernel> OndraSter_: Thinks are possible to get here if they are on the BoMs of products being manufactured now
[07:11:45] <CapnKernel> *things
[07:12:07] <CapnKernel> None of my suppliers know about the ATXMEGA, so I'm sorry, I can't supply it.
[07:12:25] <CapnKernel> Oh hang on
[07:12:35] <CapnKernel> I'm sure I wrote something down, wait a moment
[07:13:19] <mrfrenzy> you only do electronics components right, not for example PC components?
[07:13:46] <Tom_itx> it's china... they copy everything
[07:13:48] <CapnKernel> That's right
[07:13:57] <CapnKernel> Yes, I got a price on 1-off ATXMEGA32A4-AU, but their sell price is more than you can buy it elsewhere
[07:15:18] <CapnKernel> Just components. Think "bill of materials"
[07:15:41] <CapnKernel> Cyanide: The outside of the package, and the invoice in the pouch, says USD20.
[07:17:06] <CapnKernel> RikusW: You have three shipping choices
[07:17:19] <CapnKernel> Free but takes several weeks
[07:17:50] <CapnKernel> +USD3 for registered email. If crap happens it can be found. It's also a little faster.
[07:17:59] <CapnKernel> Or +USD20 for DHL up to 0.5kg
[07:18:42] <CapnKernel> If your country's postal system is at all questionable, then definitely get registered. And there are some countries where even DHL goes missnig
[07:18:52] <CapnKernel> (Russia and Brazil being particularly problematic)
[07:25:14] <OndraSter_> CapnKernel, how much is that xmega for?
[07:25:28] <CapnKernel> About USD12
[07:25:32] <OndraSter_> DUH
[07:25:38] <OndraSter_> farnell is about $5
[07:25:43] <CapnKernel> Like I said
[07:26:45] <OndraSter_> if I lived in another city, I could get it withotu shipping from farnell
[07:26:48] <OndraSter_> and pick it up locally
[07:26:57] <OndraSter_> shipping is $5 from farnell (through czech distributor)
[07:27:56] <CapnKernel> In my country (Australia) Farnell has had a minimum order of $10, and free overnight shipping. It was fantastic
[07:28:00] <CapnKernel> Unbeatable
[07:28:00] <OndraSter_> wow
[07:28:03] <OndraSter_> that's cool
[07:28:15] <OndraSter_> and all digikey and mouser have unbelievable shipping prices for orders <$60 I think
[07:28:15] <CapnKernel> They sent an email today saying they're stopping the deal
[07:28:31] <OndraSter_> duh
[07:28:32] <CapnKernel> Personally, I'm really glad Farnell have decided to stop.
[07:28:36] <OndraSter_> why?
[07:29:20] <CapnKernel> Because it makes it easier for me to provide parts to hackers at an affordable price
[07:29:45] <OndraSter_> oh
[07:31:00] <OndraSter_> 11 mar should arrive 454 pieces of xmega32a4u
[07:31:05] <OndraSter_> in TQFP
[07:31:11] <OndraSter_> 540 of QFN one
[07:33:08] <OndraSter_> I must say, the peripheral selection on xmega is just blazing
[07:36:22] <OndraSter_> I bet you can overclock it to at least 50MHz :P
[07:37:01] <OndraSter_> sure EEPROM and others probably won't work anymore
[07:37:08] <OndraSter_> you can always lower the clock via internal PLL :P
[07:38:15] <OndraSter_> zomg xmega downclocks to 24MHz when using USB :(
[07:39:39] <OndraSter_> nvm
[07:39:51] <OndraSter_> gotta use two separate clock sources
[07:39:57] <OndraSter_> (FYI, xmega has how much? 5?)
[07:43:47] <CapnKernel> Time for me to head off. May be back later.
[07:43:51] <OndraSter_> bb
[07:45:30] <konsgn> anyone got a teensy 2.0 on them ?
[07:54:23] <OndraSter_> yay, my circuit can handle 8MHz SPI... hopefuly even the LED drivers will be capable :P
[08:27:46] <zump> Does anyone have a primer on ADC's on attiny's? Like, can you actually set a sampling rate? I have an analog signal bandwidth 500 hz, i want to oversample then digitally filter on a workstation
[08:46:45] <dirty_d> you cna do all that
[08:47:05] <dirty_d> what kind of filter
[08:50:16] <zump> just to bring it back to 500 hz
[08:51:11] <dirty_d> how much resolution do you need?
[08:52:31] <zump> 10bits
[08:52:49] <dirty_d> the adc is already 10 bits isnt it?
[08:52:52] <dirty_d> or is atiny less?
[08:53:14] <zump> yes
[08:53:26] <zump> what i am unsure about is, what will the sampling rate of the ADC be ?
[08:53:33] <dirty_d> you cna set it
[08:53:42] <dirty_d> but max is 15kHz i believe
[08:54:17] <dirty_d> so if you wanted you can sample at a much higher rate and oversample to more bits
[08:54:35] <dirty_d> you can filter in on the atiny
[08:54:59] <zump> like an IIR filter?
[08:55:14] <dirty_d> yea you should be able to
[08:58:24] <zump> i want to receive sensor information bandlimited to 500hz then transmit wirelessly. not sure whether to use a micro adc then transmit, or use external adc ic then transmit
[08:59:02] <OndraSter_> how precise does the value have to be?
[08:59:36] <dirty_d> zump, what kinda wireless tech?
[09:00:46] <eatyourguitar> does anyone know anything about the libs needed to get a xbox 360 compatible HID device working?
[09:01:01] <OndraSter_> wanna make new controller for Guitar Hero? :D
[09:01:05] <Steffanx> lufa eatyourguitar
[09:01:21] <Steffanx> *LUFA
[09:01:23] <zump> dirty_d: http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRF24L01P
[09:01:24] <eatyourguitar> but does that handle the encryption too?
[09:01:34] <eatyourguitar> I know about LUFA and V-usb
[09:01:35] <OndraSter_> zump, good choice :)
[09:01:38] <zump> dirty_d: it has spi, so i can get an ext adc with spi,
[09:01:43] <Steffanx> xbox uses encryption for it's HID devices?
[09:01:54] <dirty_d> zump, for 500Hz the internal adc should be fine
[09:01:56] <eatyourguitar> word, you didn't know?
[09:02:17] <eatyourguitar> its been cracked obviously
[09:02:22] <Steffanx> I don't own a xbox ..
[09:02:41] <eatyourguitar> datel did it and had a third party make and import the PCB to avoid big bad microsoft
[09:02:47] <dirty_d> eatyourguitar, use a controller on your computer?
[09:03:05] <eatyourguitar> I have all this other stuff mostly figured out
[09:03:17] <eatyourguitar> its the xbox compatible USB I need to get sorted
[09:03:37] <eatyourguitar> I can do PS3 or PC HID joysticks
[09:04:30] <dirty_d> i didnt know it was any different
[09:04:51] <eatyourguitar> microsoft uses encryption so they can sell licenses for third party hardware
[09:05:12] <dirty_d> do you know what kind?
[09:05:28] <eatyourguitar> if someone makes a xbox 360 controller that is not licensed, microsoft will sue or stop your shipments at customs
[09:05:39] <dirty_d> fascist bastards
[09:05:44] <OndraSter_> lol
[09:06:06] <eatyourguitar> datel has a product line and retailers in the USA so they stayed far away
[09:06:24] <eatyourguitar> but I somehow got one imported under the datel brand
[09:06:43] <eatyourguitar> lots of people import the paewang as a work around to the customs ban
[09:07:01] <dirty_d> that sounds like it will be really tough to figure out
[09:07:23] <eatyourguitar> its the only joystick PCB that works on xbox 360, PC, PS3
[09:07:45] <dirty_d> can you get the firmware off it somehow?
[09:08:15] <eatyourguitar> but it is flawed because it does not auto detect to switch modes
[09:08:26] <dirty_d> what modes
[09:08:47] <eatyourguitar> there is another project that will autodetect but it uses a real licensed PCB as a daughter bboard
[09:09:02] <eatyourguitar> I can dump it but its probably locked
[09:09:13] <eatyourguitar> the numbers are gone from the IC
[09:09:29] <dirty_d> what about a scope or something
[09:09:46] <eatyourguitar> I'm saving up for a scope
[09:09:50] <dirty_d> if you plug in a controller
[09:09:55] <eatyourguitar> but the one I want cant do USB :(
[09:09:57] <dirty_d> and press a - a - a - a
[09:10:06] <dirty_d> will it send the same bits to the xbox every time?
[09:10:10] <eatyourguitar> you can just dump it through windows
[09:10:22] <eatyourguitar> windows will do an encrypted handshake in xbox mode
[09:10:38] <eatyourguitar> on win vista and 7 its plug and play
[09:10:46] <eatyourguitar> xp needs a windows update
[09:10:52] <eatyourguitar> you could hack the dll too
[09:11:06] <dirty_d> my controller works in linux no problem
[09:11:09] <zump> OndraSter_: have u used that wireless ic before?
[09:11:17] <OndraSter_> well, I have four pieces here
[09:11:25] <OndraSter_> haven't had time for it yet
[09:11:35] <eatyourguitar> your xbox controller works in linux???
[09:11:46] <eatyourguitar> maybe I should use that source as a starting point
[09:11:58] <dirty_d> are you sure its encrypted?
[09:12:06] <dirty_d> yea its always worked
[09:12:11] <dirty_d> in xp too
[09:12:19] <eatyourguitar> maybe it goes unencrypted when its connected to the computer?
[09:12:24] <dirty_d> maybe
[09:12:51] <dirty_d> do you know anything about hwo the encryption works?
[09:13:11] <eatyourguitar> I'm not sure if there is documentation on the net
[09:13:31] <eatyourguitar> are you using a wired 360 controller on linux or the wireless thingy
[09:14:14] <eatyourguitar> there is a wireless reciever made for the PC. I just want to be sure
[09:14:54] <eatyourguitar> I found this http://pingus.seul.org/~grumbel/xboxdrv/
[09:15:14] <dirty_d> wired
[09:15:32] <eatyourguitar> ok so it says your on xpad linux drivers by default
[09:15:52] <eatyourguitar> this is the upgraded version with support for wireless and stuff
[09:16:37] <eatyourguitar> the source is included :)
[09:17:10] <eatyourguitar> but the real question is if this helps me make a device thats compatible with the 360 console
[09:17:42] <dirty_d> probably not
[09:19:13] <eatyourguitar> it says it works in userspace, I'm guessing that means its an unencrypted mode
[09:19:31] <dirty_d> i think it means it just uses libusb
[09:19:39] <dirty_d> instead of a kernel driver
[09:19:52] <dirty_d> i think the controllers probabl;y have an unencrypted mode for pcs
[09:20:33] <dirty_d> hte whole point in the encryption is to make it so other companies cant make controllers and steal microsofts profits
[09:20:34] <dirty_d> right?
[09:20:47] <dirty_d> if they work on a pc too, thats more money for microsoft
[09:21:36] <eatyourguitar> well they have mac and linux drivers
[09:21:59] <eatyourguitar> microsoft loves selling $40 gamepads so people can use them with windows 7
[09:22:26] <eatyourguitar> the majority of people will do what microsoft says anyway
[09:23:38] <eatyourguitar> http://www.etokki.com/image/data/paewangrevolutionpcb.jpg
[09:23:43] <eatyourguitar> can you read that IC?
[09:23:53] <eatyourguitar> I can open mine up and tell you what it is
[09:24:08] <eatyourguitar> I guess they left the writting on
[09:24:27] <dirty_d> no
[09:24:30] <eatyourguitar> brb
[09:24:31] <OndraSter_> some ARM chip
[09:24:33] <OndraSter_> from ST
[09:25:58] <eatyourguitar> what do you use as a toolchain for that?
[09:27:06] <eatyourguitar> STM32F103
[09:27:14] <OndraSter_> no idea :)
[09:27:17] * eatyourguitar gives OndraSter a cookie
[09:27:35] <eatyourguitar> I opened it up, I'm telling you that is what I see now
[09:27:47] <eatyourguitar> I can read all the numbers
[09:27:56] <OndraSter_> no idea how you can dump those other than JTAG...
[09:28:27] <eatyourguitar> ok so I'll get a jtag
[09:28:47] <eatyourguitar> but its probably locked right?
[09:28:59] <OndraSter_> JTAG can not be locked... can it?
[09:29:10] <eatyourguitar> and it does not help me unless I'm making a clone of this PCB
[09:29:22] <eatyourguitar> I need source right?
[09:29:36] <OndraSter_> if you can read assembler, you are good to go :D
[09:29:49] <eatyourguitar> can they ecrypt the firmware so you can't read it or decompile it?
[09:29:57] <OndraSter_> sure
[09:30:17] <OndraSter_> it can be somehow "encrypted" and decrypted upon launching into RAM and run from there... it will be harder to hack
[09:30:20] <eatyourguitar> ok so I need to learn ARM assembler from the ST datsheet
[09:30:40] <eatyourguitar> and decryption lol
[09:31:23] <eatyourguitar> the other IC is a mystery
[09:31:41] <eatyourguitar> it has writting in the pics I found online but mine is sanded off
[09:32:36] <eatyourguitar> its so funny that datel has proprietary unlicensed software for proprietary software
[09:40:50] <rudolf_> hi
[09:40:51] <tobbor> Hello rudolf_
[09:41:15] <rudolf_> is this true? "If you apply a logic low on "data in" the "data out" will become low but only for few millisecond and it will start oscillating(become high/low repeatedly) after that"
[09:41:25] <rudolf_> for rf modules
[09:43:06] <rudolf_> ?
[09:46:30] <dirty_d> damnit
[09:46:45] <dirty_d> eatyourguitar, did you see this http://img138.imageshack.us/img138/4936/dsc0080o.jpg
[09:46:58] <dirty_d> arm is stm32f103
[09:47:02] <dirty_d> not sure about the other one
[09:47:27] <Sgt_Lemming> got a better pic dirty_d?
[09:47:34] <dirty_d> no
[09:47:35] <dirty_d> it looks like
[09:47:38] <dirty_d> RAW // SCIENCE
[09:48:24] <dirty_d> Datel also leads the way in hardware peripherals development through our Raw Science engineering division.
[09:48:32] <dirty_d> i guess that is what is says
[09:48:59] <asteve> what's over the wires? hot glue?
[09:49:30] <dirty_d> i think so
[09:49:50] <dirty_d> i wonder what it is
[09:49:56] <dirty_d> if that company made it
[09:50:03] <dirty_d> is it a fpga or something?
[09:50:28] <OndraSter_> hmm how come that when I do in asm .message "something"
[09:50:35] <OndraSter_> it doesn't show in the list after translating
[09:50:36] <OndraSter_> ?
[09:50:39] <OndraSter_> into binary
[09:51:43] <rudolf_> why is an inverter used before the data pin in http://extremeelectronics.co.in/avrtutorials/images/RF_Tx.gif
[09:51:56] <dirty_d> XB101
[09:52:10] <dirty_d> The smaller 2nd IC on the PCB is a custom IC called XB101 produced by a company called RAW Science, which is a specialized reverse engineering division of Datel group. So mystery no more. It looks like Datel has figured out the encryption of the MS protection IC and created their own custom IC to bypass it just like the official ones.
[09:52:59] <dirty_d> wow that website is cool, lol
[09:54:01] <eatyourguitar> ohhh snap thanks for the pic
[09:54:15] <dirty_d> eatyourguitar, you got your work cut out for you, lol
[09:56:05] <eatyourguitar> well the only reason I want to know is that it would be nice to program my own macros or have game prifiles built into the controller
[09:56:21] <eatyourguitar> so I don't have to remap buttons in game
[09:56:36] <dirty_d> yea just use one of these or soemthing
[09:56:39] <dirty_d> but $60, damn
[09:56:53] <eatyourguitar> I can get these PCB's for $40 each with cable attached
[09:57:01] <eatyourguitar> www.videogamesnewyork.com
[09:57:12] <eatyourguitar> or alibaba even cheaper
[09:57:42] <eatyourguitar> but there is no support for the 4 green LED's
[09:57:55] <dirty_d> how much cna you get a reagular controller for?
[09:58:07] <dirty_d> just rip one of those apart if its cheaper
[09:58:15] <eatyourguitar> the wholething is $65 assembled
[09:58:28] <eatyourguitar> but its gotta be modded to be any good
[09:58:38] <eatyourguitar> thats why people buy PCB's
[09:58:45] <eatyourguitar> they build it right the first time
[09:59:08] <dirty_d> yea
[09:59:22] <eatyourguitar> yeah people where buying wwf brawl pads when they went on sale for $12
[09:59:37] <dirty_d> id like a keyboard and mouse interface
[09:59:44] <eatyourguitar> some asshole bought the last 10 and bragged about it on forums
[10:00:10] <eatyourguitar> you can get adapters for the whole keyboard mouse thing
[10:00:22] <dirty_d> i think its a lot of money isnt it
[10:00:24] <dirty_d> the XIM3 thing
[10:00:30] <eatyourguitar> you wil win every FPS like COD, HALO etc
[10:00:41] <eatyourguitar> you will WIN
[10:00:45] <dirty_d> eatyourguitar, how much do you think that raw science IC costs?
[10:00:52] <dirty_d> you could buy those and make your own boards
[10:01:31] <eatyourguitar> like I would love to replace the ARM with an AVR if the XB101 handles all enryption
[10:02:06] <eatyourguitar> have you seen this http://www.modchip.ca/store/product.php?productid=16704&cat=333&page=1
[10:02:37] <dirty_d> ive seesn something like it
[10:02:52] <eatyourguitar> then that plugs into the neutrick USB pass through
[10:03:00] <dirty_d> whats that
[10:03:14] <zump> OndraSter_: check this out http://au.element14.com/texas-instruments/cc2550-rty1/rf-transceiver-smd-qfn-16-2550/dp/1248488
[10:03:17] <eatyourguitar> lots of people like detachable cables on expensive arcade sticks
[10:08:29] <dirty_d> eatyourguitar, you should reverse engineer the reverse-engineering company's chip
[10:08:32] <dirty_d> lol
[10:08:44] <dirty_d> "hows it feel?"
[10:09:13] <dirty_d> i think its just a challenge/response type thing
[10:09:14] <OndraSter_> zump, why not use the NRFL directly?
[10:09:17] <eatyourguitar> that be some serious dick punching right ther
[10:09:20] <OndraSter_> on pre-made boards for $2.5 :P
[10:09:33] <dirty_d> the xbox sends a public key encrypted challenge, and the controller sends the response back
[10:09:45] <zump> rather not, uni project :P
[10:09:51] <dirty_d> so there is probably a private key in that chip
[10:09:56] <eatyourguitar> but whatabout keepalive packets?
[10:09:59] <eatyourguitar> none of that?
[10:10:10] <dirty_d> i dunno, all the other crap is not encryptedf
[10:10:20] <eatyourguitar> oh ok
[10:10:33] <dirty_d> you just need to answer with the right response for the xbox to let the controller do anything
[10:10:44] <eatyourguitar> I know the idea, get enough handshakes and do some crypto
[10:10:55] <dirty_d> im not sure how possible that is
[10:11:02] <eatyourguitar> anyway, thanks for your help I'm AFK now
[10:11:04] <dirty_d> it could take like hundreds of years
[10:11:07] <dirty_d> later
[10:11:08] * eatyourguitar is away
[10:33:43] <pingec> how would i check what the cpu instruction 0x00 does ?
[10:40:10] <dirty_d> if you connected an avr and another usb device to a computer, would the avr be able to pretend its the other device?
[10:40:25] <dirty_d> so the computer thinks the packets are sent to the otehr device?
[10:40:28] <dirty_d> from*
[10:41:39] <dirty_d> or is the vendor and device id not configurable
[10:42:58] <abcminiuser> Any sed/awk monkeys in here?
[10:47:02] <dirty_d> i know sed pretty well
[10:53:54] <pingec> Ah I'm so glad
[10:54:00] <pingec> 0x0000 is a NOP
[11:02:49] <abcminiuser> dirty_d, figured it out I think, but the version I have doesn't have in-place edits :S
[11:03:02] <dirty_d> ok
[11:03:46] <abcminiuser> Any idea how to approximate it?
[11:03:58] <abcminiuser> Basically I want this: "sed -i "s/MARKDOWN_SUPPORT *= *YES/MARKDOWN_SUPPORT = NO/1" $$doxygen_conf"
[11:04:04] <abcminiuser> Without the -i option
[11:06:43] <abcminiuser> Aha! Temporary file to the rescue
[11:07:44] <dirty_d> sorry what?
[11:08:58] <pingec> What a cool bug, in some rare cases I execute a NOP while handling a string :P
[11:09:03] <abcminiuser> @for doxygen_conf in `find $(LUFA_ROOT) -name Doxygen.conf`; do \
[11:09:03] <abcminiuser> doxygen -u $$doxygen_conf; \
[11:09:03] <abcminiuser> sed "s/MARKDOWN_SUPPORT *= *YES/MARKDOWN_SUPPORT = NO/1" $$doxygen_conf > $$doxygen_conf.new; \
[11:09:03] <abcminiuser> mv -u $$doxygen_conf.new $$doxygen_conf; \
[11:09:03] <abcminiuser> done;
[11:09:25] <abcminiuser> That will update all my Doxygen scripts to the latest versions, but with Markdown support disabled
[11:09:31] <dirty_d> ahh
[12:03:05] <cyanide> yay
[12:03:20] <cyanide> scantool sent me free samples of their stn1110 chip
[12:03:28] <cyanide> good stuff
[12:03:41] <cyanide> obd2 to uart converter
[12:04:52] <Casper> seems quite a basic chip...
[12:05:01] <Casper> as obd2 is simply canbus
[12:21:10] <cyanide> did anyone see the darpa cheetah video?
[12:21:10] <cyanide> http://www.youtube.com/watch?v=d2D71CveQwo
[12:21:12] <cyanide> scary
[12:22:50] <cyanide> CapnKernel, there? the parcel you sent will be delivered tomorrow morning
[12:22:55] <cyanide> has reached my city
[12:23:02] <dirty_d> thats awesome
[12:23:47] <dirty_d> cyanide, how much of that traction control systme have you finished?
[12:24:11] <cyanide> i haven't written much code yet
[12:24:18] <dirty_d> what abotu the hardware?
[12:24:23] <dirty_d> like sensors and all taht?
[12:24:30] <cyanide> ive developed the board, waiting for the mcu and the sensors to arrive
[12:24:43] <dirty_d> so are you attaching something to the wheels?
[12:24:54] <cyanide> yes, 4 honeywell hall effect sensors
[12:25:09] <dirty_d> some kind of disc too though?
[12:25:27] <cyanide> this one: http://search.digikey.com/us/en/products/1GT101DC/480-2021-ND/701375
[12:25:32] <cyanide> along with toothed trigger wheels
[12:26:12] <dirty_d> how will those be attached?
[12:26:23] <cyanide> this will be mounted a few mm away from a toothed trigger wheel like this one: http://www.jenvey.co.uk/components/com_virtuemart/shop_image/product/Trig1%20sm.jpg
[12:26:36] <cyanide> the trigger wheels will be on the axles
[12:26:42] <dirty_d> ahh
[12:26:59] <cyanide> on the rear wheels (non-drive), they will be attached to the hub
[12:27:01] <dirty_d> yea i was thinking it might be better if i just put one trigger wheel or something on my driveshaft
[12:27:22] <cyanide> put one for each driveshaft
[12:27:36] <dirty_d> i meant just the main driveshaft
[12:28:06] <cyanide> the prop shaft that goes to the diff at the rear?
[12:28:13] <dirty_d> it has a limited slip diff, so the rear axle is pretty much locked when driving straight
[12:28:16] <dirty_d> yea
[12:28:17] <cyanide> im sorry, you have a rwd correct?
[12:28:19] <cyanide> ah
[12:28:19] <dirty_d> yea
[12:28:35] <dirty_d> front wheels might be tricky
[12:29:01] <cyanide> the sensor outputs a digital signal. just have each firing interrupts for every rising edge
[12:29:09] <cyanide> yea, the mounting will be the tricky part
[12:29:16] <dirty_d> that sensor is expensive
[12:29:33] <dirty_d> you might be able to just get a plain hall sensor and add a magnet near the wheel
[12:29:53] <cyanide> my customers should be able to afford it lol
[12:29:55] <dirty_d> lol
[12:30:13] <cyanide> you could just have a reed switch too
[12:30:20] <cyanide> cheaper and easier
[12:30:49] <cyanide> or if you have abs on your car, you could just tap into those sensors
[12:30:55] <cyanide> not sure if the old mustangs had abs :)
[12:31:01] <cyanide> my honda doesn't
[12:31:03] <dirty_d> it does have it, im not sure that they work though
[12:31:08] <cyanide> ah
[12:31:17] <cyanide> but the oem sensors will be cheap i think
[12:32:11] <cyanide> and you won't have to worry about mounting them since the drivetrain will have the correct mounting points for them
[12:32:42] <dirty_d> theyre like $50
[12:32:51] <cyanide> haha ok
[12:33:06] <cyanide> let me check oem civic sensors, beb
[12:33:06] <dirty_d> lol
[12:33:08] <cyanide> brb*
[12:34:46] <konsgn> anyone else load a teensy compatible bootloader onto an atmega32u4?
[12:37:00] <cyanide> dirty_d, junkyards?
[12:37:41] <dirty_d> id probably just get my own sensors
[12:37:45] <cyanide> konsgn, what's the problem?
[12:39:20] <konsgn> lost halfkay bootloader, using LUFA's to recreate it, but the latest version doesn't get recognized by the teensy loader 1.6
[12:44:49] <dirty_d> cyanide, how are you retarding timing?
[12:53:15] <dirty_d> i can hear the guy in the next cubicle watching a war movie
[12:53:17] <dirty_d> lol
[12:53:43] <konsgn> dirty, where do you work?
[12:55:40] <dirty_d> a school
[13:05:08] <cyanide> dirty_d, the engine management software i run has that option
[13:05:31] <cyanide> if it sees a +5v on one of it's wires, it'll do fuel/ignition adjustments along with a bunch of other things
[13:05:42] <dirty_d> oh
[13:07:17] <cyanide> ill show you a pic, one sec
[13:09:34] <cyanide> dirty_d, http://i.imgur.com/y8Box.jpg
[13:10:05] <dirty_d> cool
[13:10:54] <cyanide> can use inputs that the ecu has, like the ac switch, a service connector jumper which otherwise flashes obd codes, etc
[13:11:31] <cyanide> and can have those trigger other outputs, make fuelling/ignition adjustments
[13:12:15] <cyanide> this thing has a nice anti-theft system lol
[13:12:46] <cyanide> you can set a password using various switches in the car, and sequentially pressing the accelerator and brake pedals lol
[13:13:11] <cyanide> obviously a smart thief could just replace the ecu and drive away lol
[13:20:34] <dirty_d> lol
[13:20:58] <cyanide> but this is india, so i dont think i'll have to worry :)
[13:21:28] <dirty_d> probably not
[13:21:39] <dirty_d> damn this mit course is tricky
[13:21:56] <dirty_d> it just all of a sudden started to make no sense, lol
[13:23:25] <specing> Ha.Ha
[13:24:50] <Steffanx> ho.ho
[13:38:04] <dirty_d> fu.ck
[13:40:00] <Steffanx> No thanks
[13:46:32] <dirty_d> https://6002x.mitx.mit.edu/static/circuits/superposition-v.gif
[13:46:44] <dirty_d> i1=b1∗V1+b2∗V2
[13:47:00] <dirty_d> anyone care to explain how you arrive at b1?
[13:47:28] <dirty_d> actualyl i got it
[13:47:31] <dirty_d> -1/(R1 + 1/(1/R2 + 1/R3))
[13:47:52] <dirty_d> it just looks a lot different fro the actual answer because its not simplified
[13:49:10] <asteve> do you have your parentheses in the correct place?
[13:49:20] <dirty_d> yea its right it verified
[13:49:37] <dirty_d> i need to brush up on my math
[13:49:44] <dirty_d> how do you simplify something like that?
[13:50:08] <dirty_d> actually nevermind
[13:50:14] <dirty_d> it meakes more sense not simplified
[13:50:36] <dirty_d> -(R2+R3)/(R1*R2+R1*R3+R2*R3)
[13:50:39] <dirty_d> thats the answer they have
[13:50:43] <dirty_d> same thing
[13:50:52] <dirty_d> but it looks confusing
[13:51:18] <dirty_d> -1/(R1 + 1/(1/R2 + 1/R3)) look like a resistance in series with 2 parallel resistances
[13:51:22] <dirty_d> the other one just looks like math
[13:51:23] <dirty_d> lol
[15:34:19] <SilicaGel> so maybe dumb question but
[15:34:51] <SilicaGel> on an ATMega328P if you set the RSTDISBL fuse so taht you can use PC6 as an I/O pin, how do you ever get the thing into ISP (programming) mode ever again?
[15:35:31] <specing> HVP
[15:35:40] <SilicaGel> Into that same pin?
[15:36:30] <specing> read the docs, never used it
[15:36:44] <SilicaGel> I'm looking at the user's manual and tryign to find it
[15:38:26] <SilicaGel> blech, the ATMega128 doesn't support that mode which makes me think the 328 doesn't either
[15:39:12] <mrfrenzy> look in the manual for stk500
[15:50:45] <Kevin`> SilicaGel: it will support SOME mode for recovery
[15:51:04] <Kevin`> SilicaGel: in the datasheet HVPP is called parallel programming, iirc
[15:51:17] <SilicaGel> yeah. it looks like there's a high voltage programming mode but it's parallel, which would mean removing the chip
[15:51:25] <Kevin`> it's annoying to connect to, i'd just get a slightly larger chip if you need more io
[15:51:27] <SilicaGel> so I guess using that pin is just something to be avoided.
[15:51:53] <SilicaGel> it's not taht I need more I/O, it's that I'm tryign to be clever about using the ISP connector, hehe.
[16:45:06] <sabesto> hmm, got some weird problem, trying to read the ADC on an atmega1284p (xplained) in regular intervals, the first value it reads seems to stick if i upload and run the code, but if i debug the program it works :P
[16:46:30] <Kevin`> sabesto: you might be reading adch/adcl in the wrong order, or perhaps reading only the "wrong" one and never the other?
[16:46:34] <sabesto> http://pastebin.com/8RDHEMBj
[16:46:46] <sabesto> but it works when debugging :P
[16:46:54] <sabesto> on the chip
[16:47:51] <Kevin`> the debugger can and does read registers directly, i'm not sure if it affects the synchronous ordering stuff or not
[16:48:08] <sabesto> the usart sends the correct values
[16:48:13] <sabesto> to the terminal
[16:48:29] <Kevin`> I think you are missing the point
[16:49:25] <Kevin`> also I don't want to read the datasheet to see if you are doing it right or backwards
[16:49:27] <specing> Debuggers are used when people stop thinking
[16:51:14] <specing> sabesto: why are you testing for ADSC on line 50? Shouldn't you be testing for the ADIF bit?
[16:51:33] <sabesto> i did first
[16:51:50] <specing> sabesto: you need to real ADCL first
[16:51:50] <Kevin`> sabesto: http://pastebin.com/Pc13NcQV - your code is backwards, says a random sample of my code
[16:51:52] <sabesto> same issue
[16:51:54] <specing> read*
[16:53:05] <sabesto> Kevin`: that might be, but values should be fluctuating anyhow
[16:53:29] <sabesto> reads 1024 when i block the light sensor, 0 when i shine a light on it
[16:53:42] <Kevin`> sabesto: the register will never get updated because you have it locked constantly
[16:53:59] <Kevin`> iirc
[16:54:06] <Kevin`> just do it right anyway, otherwise you'll get stupid values in either case
[16:54:36] <sabesto> by starting a new conversion before its done you mean?
[16:55:16] <Kevin`> sabesto: you are reading adch and adcl in the wrong order. you have it set so that for 500ms it can't be updated and for 1 cycle it can be
[16:58:21] <sabesto> hm, changing the order of H/L fixed it, but i dont understand why
[17:00:54] <sabesto> to the datasheets
[17:03:29] <specing> < sabesto> hm, changing the order of H/L fixed it, but i dont understand why
[17:04:00] <specing> NOT TO MENTION THAT THE DS SAYS LIKE A GAZILION TIMES THAT YOU HAVE TO READ IT IN A SPECIFIC ORDER!
[17:04:09] <specing> __GAZILION__
[17:08:00] <sabesto> my god, i am so sorry, geez
[17:09:09] <sabesto> what is the point of this channel if no questions can be asked
[17:09:27] <Landon> they can be, we just like to assume you've gone over relevant sections of the datasheet
[17:10:39] <sabesto> well, i dont think a reply like that is necessary
[17:16:49] <chupas> is AVR 5 in a form that wont make me pull my hear out to use? AKA are the breakpoints in debugging working?
[17:19:00] <chupas> 5.1 im way off
[17:20:23] <Steffanx> sabesto .. fyi it's not necessary to use line 51 and 52 at all, just read ADC and GCC do everything for you.
[17:20:23] <Steffanx> *GCC will do
[17:21:14] <Steffanx> ADC = ADCL + ADCH
[17:21:57] <chupas> wait wait wait.... they are allready working on AVR studio 6... wasent 5 still in beta till like this year?
[17:22:13] <Roklobsta> yeah 6 does arm
[17:22:31] <Roklobsta> why didn't they stick with eclipse?
[17:22:58] <Steffanx> VSS is better
[17:23:00] <sabesto> Steffanx: yes, i tried that a moment ago
[17:23:19] <sabesto> good practice since ive just started anyway
[17:24:12] <chupas> I am going to atempt to do this project in 5.1. I hope its good to go now
[17:39:51] <Roklobsta> yeah but vss doesn't work on lunix and Macsox.
[17:40:14] <vectory> vss? visual studio s?
[17:40:20] <vectory> espress :)
[17:40:37] <Roklobsta> and atmel don't seem to have released any info on the jtag spec for AVRs so you can't use genetic jtag unit, gdb and insight.
[17:40:44] <Roklobsta> generic
[18:07:53] <vectory> CapnKernel: ive got a guy interested in lpddr ram. you think you could do sth bout that?
[18:11:45] <Kevin`> Roklobsta: you can use an atmel jtag unit with gdb though
[18:23:35] <Roklobsta> yeah i know but you are stuck with one or two atmel branded devices to do it
[20:18:21] <Redbluefire> Hey, is anyone here familiar with the ASF TWI libraries?
[20:20:44] <Redbluefire> Rather, the TWI interface on the Xmega period.
[20:44:44] <Casper> Redbluefire: what about #xmega?
[20:45:25] <Redbluefire> Casper, that channel is empty, it seems.
[20:45:33] <Casper> ah
[21:06:44] <Kevin`> Redbluefire: you don't HAVE to use asf for xmega, btw. all of the registers still work essentially the same as the older devices, except different names and some extra convenience structs
[21:09:12] <Redbluefire> I.. I'm a hardware guy, so coding is already an ordeal.. I was trying to stick with the path of least resistance. Though it seems I'm pretty lost now
[21:11:37] <Redbluefire> Is there any way I can use the ASF stuff I'm already using, and just use xmegaduino for it's wire library?
[21:11:59] <Casper> Redbluefire: this is a problem with that false teaching
[21:12:32] <Casper> current mostly flow throught the path of least resistance, based on the ratio of it and ALL other path
[21:13:06] <Casper> think of your house faucets
[21:13:11] <Casper> all of them are a path
[21:13:12] <Redbluefire> I know
[21:13:56] <Redbluefire> ASF just seemed the best choice to a noob like me, so much documentation and all
[21:14:05] <Redbluefire> and now I'm too invested to go another way
[21:14:25] <Casper> what is asf?
[21:15:15] <Redbluefire> atmel software framework
[21:15:30] <Casper> atmel docs are quite good
[21:16:11] <atommann> Casper: agree :)
[21:17:18] <Redbluefire> Anyway, let me rephrase my question:
[21:18:04] <Redbluefire> How can I use the xmegaduino Wire library with my AVR Studio/ASF project?
[21:18:24] <Redbluefire> I'm not sure of the proper things to include and how to include them
[21:32:54] <Kevin`> Redbluefire: including arduino libraries is possible but it's pretty annoying. why can't you use the asf library or just spend a few minutes writing code following the datasheet
[21:34:43] <Redbluefire> Kevin`, I've been fiddling with the asf library all day, and haven't been able to get it to work. I tried writing my own code following the datasheet, but I got really confused when it came to issuing a start/stop condition and recieving data
[21:37:59] <Kevin`> ..and you are the only one who can write the code for this device? ;p
[21:38:49] <Redbluefire> Well, It's my own project.. so I don't understand your question >.>
[22:33:46] <brentbxr^t> anyone here into FPGAs?
[22:37:03] <ziph> Someone will be.
[22:38:30] <brentbxr^t> talkin about me
[22:38:37] <ziph> Yeap.
[22:38:54] <brentbxr^t> once you step into FPGA's it really makes AVRs, PICS, all that look like toys in comparison
[22:38:59] <brentbxr^t> but i sitll love my AVRs
[22:39:05] <brentbxr^t> so its hard to step away
[22:39:17] <brentbxr^t> plus price of course; its not logical to use FPGAs on most projects
[22:39:23] <brentbxr^t> well public
[22:39:25] <brentbxr^t> projects
[22:40:37] <ziph> DSP's and high end 32 bit processors are more useful than FPGA's for many things, they just aren't cool.
[22:59:43] <brentbxr^t> wait what?
[23:00:03] <brentbxr^t> im pretty sure thats backwards
[23:05:22] <jadew> interresting, switching power supplies suck
[23:07:26] <brentbxr^t> agreed. It sure does.
[23:07:37] <brentbxr^t> but not really
[23:07:48] <brentbxr^t> just design it right
[23:08:15] <brentbxr^t> sucks just as much as uart; just design a correct level circuit
[23:08:24] <brentbxr^t> doesnt really suck anymore
[23:08:31] <brentbxr^t> like second nature after a while
[23:08:54] <jadew> it's a ps that came with an external hdd adapter
[23:09:03] <jadew> has a lot of noise
[23:09:17] <brentbxr^t> oh
[23:09:19] <brentbxr^t> lol
[23:09:49] <jadew> compared to transformer based ones
[23:10:02] <brentbxr^t> sorry I thought you mean the need of differnt powers to an fpga
[23:10:10] <jadew> ah, no
[23:10:13] <brentbxr^t> :D
[23:10:21] <brentbxr^t> i still agree
[23:10:21] <brentbxr^t> :D
[23:10:32] <brentbxr^t> switching power supplies does suck