#avr | Logs for 2012-03-24

Back
[00:00:33] <Valen> not in any way is it programmed or communicated with on the board in question
[00:00:59] <Metalsutton> I have used fuse bit settings to change it to external 12Mhz crystal. As per the guide I am following. It works fine on the breadboard. Just detects as a malfunctioning usb device on the stripboard.
[00:01:27] <Valen> so it is enumerating over USB?
[00:01:38] <Metalsutton> ....
[00:01:45] <Metalsutton> enumerating....
[00:01:50] <Metalsutton> sorry. english. lol
[00:02:06] <Valen> you plug it in and something happens
[00:02:58] <Metalsutton> yup. unknown usb device. Thats my only indication as to success/failure. With the bboard it shows up as a gaming controller.
[00:04:01] <Valen> your clock speed is wrong, d+ and d- are reversed or your thing is getting stuck
[00:04:16] <Valen> it gets halfway through asserts a line and gets frozen
[00:04:30] <Valen> (clock speed wrong is again back to triming the lines and using the right value caps)
[00:04:40] <ziph> Windows will see an "unknown" device even if you put DC on the USB pins.
[00:04:41] <Metalsutton> I was thinking about the D's getting reversed. but every info i have seen on the net tells me it is correct.
[00:06:12] <Valen> ziph: you sure? i've only seen it after something tries to twiddle them
[00:07:57] <Valen> although i use linux
[00:08:29] <ziph> Valen: Yes, I've seen it happen.
[00:08:41] <Valen> windows, who'da thunk it
[00:09:01] <Metalsutton> "I've had V-USB circuits not work due to the 1.5 Kohm resistor, raising it to 2.2 Kohm fixed the problem. I think 1.5 Kohm is used when you want to pull-up to 3.3V, not 5V, or else it's too strong."
[00:09:08] <ziph> Windows also has a number of (probably exploitable) bugs in the USB descriptor processing (either in the lower driver or the class drivers).
[00:09:38] <Valen> that is much less of a suprise to me ;->
[00:09:42] <Valen> well time to strip wallpaper
[00:09:58] <Casper> Valen: good luck
[00:10:04] <Casper> Metalsutton: make a led flasher
[00:10:16] <Metalsutton> Will do. Cheers for the help guys.
[00:10:21] <Casper> program it, and find a way to connect the led to your board
[00:10:24] <Casper> if it flash "good"
[00:10:34] <Casper> now, remove the crystal and see if it still flash
[00:10:40] <Casper> if it does your fuses are wrong
[00:11:10] <Valen> the most important part of any board i make is the i'm alive light
[00:11:11] <Casper> also
[00:11:15] <Metalsutton> Oh I know the fuses should be correct. I know its not operating off the internal clock at all.
[00:11:16] <Valen> not just power
[00:11:19] <Valen> it must flash
[00:11:33] <Casper> be sure that if it have "ckopt" that it IS used
[00:11:45] <Valen> otherwise its too easy for a latchup to look like operation
[00:11:50] <Casper> and if it have a clkdiv8... it must NOT be used
[00:11:53] <Valen> also look out for the watchdog timer
[00:12:02] <Valen> it looks a whole lot like your LED is flashing lol
[00:12:12] <Metalsutton> argh. so confused.
[00:12:33] <ziph> Metalsutton: If you put your oscilloscope on to the clock lines you should get a rough frequency confirmation.
[00:13:52] <Valen> or itll stall the clock lol
[00:14:35] <Metalsutton> Lol. im a guy who followed a guide on the net. Just recently brought alot of electronics stuff, from not having done anything since high school, and I downloaded the hex files and programmed the fuse bits etc in AVRdude. I do not own an oscilloscope or anything fancy, nor do I know how to code. lol. Sorry, its a bit of a venture for me at the moment. I am stepping into rooms with people that do
[00:14:35] <Metalsutton> this for a living etc.
[00:14:48] <ziph> A clock that feeble would have terrible frequency stability and jitter.
[00:15:19] <Valen> ziph, some probes have quite a bit of load
[00:15:33] <Valen> both resistive and capacitive
[00:19:09] <Casper> ziph: my scope stop all oscillation from any xtal
[00:19:13] <Casper> unless I do in 10x
[00:39:18] <Roamin> Metalsutton , i believe on board A , the ground from usb port is not connected
[00:39:43] <Metalsutton> how so?
[00:39:57] <Metalsutton> one sec. ill take a look
[00:40:05] <Roamin> let me edit the picture and show you
[00:40:23] <Metalsutton> cheers
[00:41:32] <Metalsutton> Now that I think about it. Putting the top and bottom images next to each other and then mirroring the bottom would have been a good itea :)
[00:41:36] <Metalsutton> idea even
[00:42:06] <Roamin> i sent via dcc, not sure if you can accept
[00:44:37] <Metalsutton> hmmm
[00:45:16] <Metalsutton> wheres the loss of connection?
[00:45:55] <Roamin> hold on, its hard to trace your wires, but i dont see how what i circled is connected to pin 8 of the mcu
[00:47:33] <Roamin> heh, nevermind ;)
[00:49:09] <Metalsutton> diagonaly and then its on that entire track
[05:29:27] <pc_magas> Καλιμέρα - good morning
[05:29:52] <Steffanx> nu
[05:32:44] <FreeArtMan> hi pc_magas
[08:03:00] <cyanide> hello
[08:42:40] <OndraSter> elo happines
[09:15:01] <OndraSter> so
[09:15:03] <OndraSter> disply works
[09:15:08] <OndraSter> now I need to write 15 pages about it
[09:15:17] <OndraSter> preferably during this weekend :P
[09:16:11] <Tom_itx> that's the not fun part
[09:16:17] <OndraSter> yeah
[09:16:25] <OndraSter> but those 15 pages can contain full source
[09:16:31] <OndraSter> = source on its own has about 20 pages -.-
[09:16:34] <OndraSter> (assembler ftw!)
[09:16:44] <OndraSter> plus test application has about 350 lines in C# :P
[09:16:50] <Tom_itx> comment the asm and turn it in after you sign it
[09:19:10] <Steffanx> Only 15 pages OndraSter ?
[09:19:36] <OndraSter> yeah
[09:19:40] <OndraSter> I am ending only "high school"
[09:20:49] <Steffanx> Yeah, but 15 pages is nothing for a project that took you months
[09:21:06] <Steffanx> to complete
[09:26:50] <cyanide> how can i sniff data off a serial line? can i make a passthrough just by receiving off one pair of uart ports and sending it on another pair of uart ports?
[09:27:01] <cyanide> im using an xmega which has quite a few uarts
[09:27:28] <Tom_itx> http://www.saleae.com/logic
[09:27:54] <Tom_itx> i've also captured using a pc with 2 ports
[09:28:54] <cyanide> but how do i convert that to actual data?
[09:29:50] <Tom_itx> oh, you want me to write the app too...
[09:30:33] <Tom_itx> saleae has various protocols and will show hex etc data
[09:33:10] <cyanide> i just want to add a device between 2 devices which are already talking
[09:33:31] <cyanide> and i want to sniff the data passing through them
[09:33:58] <cyanide> and display it on an lcd
[09:35:07] <Tom_itx> first of all, lcd's are rather slow
[09:35:16] <Tom_itx> and may not keep up with the data stream
[09:35:56] <cyanide> that's fine
[09:36:12] <cyanide> i can take a 'average' snapshot every 100ms and display that
[09:36:17] <cyanide> it's a bunch of engine data
[09:36:22] <cyanide> from various sensors
[09:40:31] <cyanide> the guy who made the system is being a dick and won't tell me anything at all
[09:40:55] <cyanide> It can only be updated about 50 times a second. That information is proprietary anyway, and that port is really only meant for the display/bluetooth peripherals.
[09:45:06] <OndraSter> if you do single shot with saleae or any other logic analyzer for a second
[09:45:08] <OndraSter> you catch it all :)
[09:45:21] <OndraSter> unless it is continuous data stream ofc
[09:49:52] <cyanide> it is a continuous data stream
[09:50:12] <Tom_itx> do the same thing with a C and 2 uarts. capture the data and send it back out unaltered
[09:50:14] <OndraSter> but the data " repeat" with updated values
[09:50:33] <Tom_itx> use what you want and discard the rest
[09:50:57] <OndraSter> if you want just monitoring, you can hook it up onto two uarts
[09:50:58] <Tom_itx> i captured both sides to files on a pc
[09:51:09] <OndraSter> RX & TX to two TXs on two uCs
[09:51:23] <OndraSter> err
[09:51:23] <cyanide> so that'll work fine?
[09:51:25] <OndraSter> to two RXs
[09:51:27] <cyanide> that was my original idea
[09:51:31] <OndraSter> that will work too
[09:51:33] <OndraSter> just for sniffing
[09:51:42] <Tom_itx> just make sure it's transparent
[09:51:45] <cyanide> it's not like either device will know, correct?
[09:52:29] <OndraSter> talking about UART, anyone tried that multi processor mode for UART on megas? :)
[09:52:50] <OndraSter> because you can do way higher speeds on UART than on I2C...
[09:53:00] <OndraSter> with just few lines of code
[10:11:43] <OndraSter> funny thing... when I let lit up all pixels yellow (aka whole 3072 LEDs are on) and change brightness quickly, it ... resets
[10:11:46] <OndraSter> no idea why LOL
[10:12:01] <OndraSter> I can only think of watchdog somehow kicking it up
[10:12:13] <OndraSter> but that gets reset during overflow which is not changed...
[10:12:17] <OndraSter> weird
[10:14:27] <OndraSter> maybe some spike resets the MCU...
[10:17:19] <Tom_itx> power surge
[10:17:25] <Tom_itx> need more caps
[10:17:40] <Tom_itx> brownout?
[10:21:19] <OndraSter> brownout is disabled
[10:21:22] <OndraSter> power surge only from battery
[10:21:28] <OndraSter> the MCu is powered from USB
[10:21:34] <OndraSter> no idea why it does what it does
[10:22:07] <OndraSter> also at powerup I have there relay that disconnects the battery as a safety measure... I think I will call that "power on auto test" lol
[10:22:41] <OndraSter> * marloshouse has quit (Remote host closed the connection)
[10:22:43] <OndraSter> app works
[10:22:47] <OndraSter> and sends the data correctly
[12:05:49] <pc_magas> bb
[13:26:23] <dirty_d> I'm on a boat
[13:31:39] <abcminiuser> Christ, never buy Dell
[13:40:45] <cyanide> i have a dell laptop and im happy with it
[13:42:16] <dirty_d|> This airplane internet is terrible
[13:43:33] <Landon> heh
[13:43:38] <Landon> at least you have internet in an airplane :D
[13:46:01] <OndraSter> oh god Dell laptops
[13:46:07] <OndraSter> NOOOO PLEEASEE NOO
[13:46:11] <OndraSter> I called their NBD once
[13:46:15] <OndraSter> and I was already fed up with it
[13:46:16] <OndraSter> lol
[13:46:22] <OndraSter> (we had few DOA laptops...
[13:46:27] <OndraSter> 2 out of 20)
[14:04:59] <cyanide> dell india is nice
[14:05:21] <cyanide> they replace laptops if there's a problem within x days of buying
[14:19:57] <OndraSter> I prefer when my laptop works, cyanide
[14:20:48] <Tom_itx> only issue i've had with them is their walwarts
[15:14:29] <cyanide> OndraSter, my laptop has been working perfectly
[15:14:58] <cyanide> and i take it to races, inside the pitlane where the temps are routinely 45+ degrees C, and in racecars that vibrate more than sybians
[15:15:22] <cyanide> i guess im lucky, going by the general consensus here
[15:15:28] <cyanide> im going to replace it soon nonetheless
[15:15:37] <cyanide> but im not sure what i should go with
[15:16:10] <cyanide> aww hell. i have to clean up my room
[15:22:03] <cyanide> http://i.imgur.com/HS5TY.jpg
[15:24:18] <cyanide> and 3 engine heads on the right, not included in the pic
[15:25:49] <Casper> cyanide: time to scrap some stuff?
[15:27:33] <cyanide> already did, yesterday. all this stuff is actually in use
[15:29:48] <cyanide> bbl, ugh
[15:35:52] <OndraSter> lucky you, cyanide
[15:36:42] <OndraSter> I can't find any Tablet PC that would have reasonable price
[15:36:47] <OndraSter> I am still happy with my toshiba portege m200
[15:36:53] <OndraSter> and HP 6715b notebook if I want bigger screen
[15:37:18] <OndraSter> with 1680x1050
[15:37:26] <OndraSter> (not much difference to tablet's 1400x1050 though)
[17:14:48] <OndraSter> https://skydrive.live.com/redir.aspx?cid=40bf7833586103ab&resid=40BF7833586103AB!467&parid=40BF7833586103AB!111&authkey=!APjNBy-jqZqssLQ
[17:14:52] <OndraSter> this time video with scope!
[17:14:56] <OndraSter> and display too!
[17:43:50] <OndraSter> wondering how much could you push out of real +-13V RS232 in good ol' days just before the ports started disappearing
[17:43:57] <OndraSter> speed wise
[17:59:55] <Roklobsta> ondraster: you're no making sense. what do you mean by disapearing?
[18:00:16] <OndraSter> when they were started to disappear from motherboard headers
[18:00:25] <OndraSter> on the back IO panel
[18:00:38] <OndraSter> they are _still_ on the board in form of a header
[18:00:44] <OndraSter> even on my SandyBridge board
[18:00:47] <Roklobsta> yes
[18:00:52] <Roklobsta> they will be for a while
[18:00:57] <OndraSter> but I mean when they started disappearing on the back panel
[18:00:59] <Roklobsta> a 2x5 pin header is cheap
[18:01:01] <OndraSter> about 2004? 2005?
[18:01:07] <Roklobsta> oh, maybe 2006
[18:01:24] <OndraSter> I have 1000 of those pin headers with DB9 on the other end from old 486 or 386 PCs
[18:01:25] <Roklobsta> my mythtv box doesn't have a serial port. I had to plug a DB9 adapter in for LIRC.
[18:01:49] <Roklobsta> right so in the 486 days you still needed a plug and cable.
[18:01:55] <Roklobsta> like now
[18:02:15] <OndraSter> yeah
[18:02:30] <OndraSter> usually you had one parallel and two serial
[18:02:33] <Roklobsta> i tried resurrecting a 1998 canon scanner last month so i had to buy a db25 plug.
[18:02:34] <OndraSter> and they wouldn't fit one PCI board
[18:02:38] <OndraSter> heh
[18:03:02] <Roklobsta> the canon scanner is now mostly in recycling and i have kept the motor, CCD and mobo for cannibalisation.
[18:03:23] <OndraSter> :)
[18:03:29] <Roklobsta> lots of good tants on the PCB
[18:03:44] <Roklobsta> even for 1998 the scanner was well designed for quick assembly.
[18:03:49] <OndraSter> :)
[18:04:03] <Roklobsta> very easy to pull apart.
[18:04:35] <Roklobsta> when you can get a new epson fax/colour printer/scanner for $119 it's not worth resurrecting
[18:05:01] <Roklobsta> and with SANE it just didn't want to work very well. and it was slooooooow.
[18:05:53] <Roklobsta> i pulled apart some old HD's too the other day. amazing mechatronics. good for spare SRAM/DRAM and tants too.
[18:06:13] <OndraSter> :)
[18:06:26] <OndraSter> LPT scanners
[18:06:29] <OndraSter> still have one working here
[18:14:06] <Roklobsta> this canon was slow and crappy
[18:14:14] <Roklobsta> the lpt interface is just dodgy
[18:14:58] * Roklobsta thanks the <insert most favoured deity here> for USB.
[18:16:14] <OndraSter> ohgodusb
[18:26:25] <Roklobsta> oh capn my capn
[18:26:42] <Roklobsta> where are you nowadays?
[18:27:04] <OndraSter> CapnKernel, hello
[18:27:20] <OndraSter> CapnKernel, https://skydrive.live.com/redir.aspx?cid=40bf7833586103ab&resid=40BF7833586103AB!467&parid=40BF7833586103AB!111&authkey=!APjNBy-jqZqssLQ
[18:27:23] <OndraSter> newer stuff :)
[18:27:30] <OndraSter> without bleeding image (finally!)
[18:27:33] <OndraSter> who would've thought
[18:27:40] <OndraSter> swapping Display Enable with RCK -.-
[18:51:31] <CapnKernel> Roklobsta: Back in Melbourne. It is so nice to be surrounded by sanity and normality.
[18:52:27] <ziph> You don't feel uncomfortable knowing the number of reels of components in a 5Km radius around you is probably only in the hundreds instead of millions? :)
[18:53:22] <CapnKernel> Even six hours in China and it's-normal-for-China stuff was happening. For example, airline ran flight 1 late, so I missed flight 2 (that's the normal part). So they put me up in a hotel. The abnormal part was the driver from the airport insisting on filling up his car, THEN driving me the 200m remaining to the hotel. No, drop your customer off, THEN fill up!
[18:54:04] <OndraSter> CapnKernel, check my vid :)
[18:54:06] <CapnKernel> And the hotel saying they'd put me in in a room with a double bed, in case someone else came along, despite the entire hotel being empty.
[18:54:22] <CapnKernel> I get a message about "your browser can't play that vid" or similar.
[18:54:31] <OndraSter> damn
[18:54:34] <OndraSter> what browser?
[18:54:38] <CapnKernel> FF11
[18:54:39] <OndraSter> it is HTML5 video player most likely
[18:54:39] <OndraSter> hmm
[18:55:11] <CapnKernel> OndraSter: All I can see is a still of your cool LEDs, with the F word on it
[18:55:14] <OndraSter> http://www.facebook.com/photo.php?v=2791714637590
[18:55:20] <OndraSter> :)
[18:55:22] <OndraSter> does this work for you?
[18:55:24] <OndraSter> regular flash
[18:56:13] <CapnKernel> Yes
[18:56:18] <OndraSter> :)
[18:56:20] <CapnKernel> Needs a voice-over to say what we're seeing on the CRO
[18:56:31] <CapnKernel> But hey, sweet!
[18:56:41] <OndraSter> oh, the scope is the display enable pin I think
[18:56:43] <OndraSter> thanks
[18:57:03] <OndraSter> display enable directly drives brightness
[18:57:09] <OndraSter> ("surprisingly)
[18:57:25] <OndraSter> damn it is 0047 again
[18:57:30] <OndraSter> they are GONNA STEAL ONE HOUR FROM US
[18:57:37] <OndraSter> in 1 hour and few minutes
[19:51:39] * OndraSter is watching Odyssey 5 just because of one episode that is named "Half Life"
[21:28:51] <Casper> hi Richard_Cavell
[21:28:55] <Casper> how's the projects?
[21:29:35] <Richard_Cavell> hi mate
[21:29:36] <Richard_Cavell> all well
[21:29:45] <Richard_Cavell> completed all my electronics projects successfully
[21:35:41] <Casper> :D
[23:19:13] <theBear> query z-bot
[23:19:14] <theBear> ?
[23:19:25] <Tom_itx> wrong channel
[23:19:29] <Tom_itx> ##
[23:20:15] <theBear> :)