#avr | Logs for 2013-09-29

Back
[09:25:19] <sjokkis> I'm trying to configure the correct heap size for freertos. I've gathered that I can see the available memory in the map file, but I can't really figure out where in the file it's supposed to say. Setting the heap size to 8kb (the ram on this avr) doesn't work. Setting it at 7kb works fine, but i'd rather use everything i can. Help?
[09:31:45] <Fornaxian> sjokkis, don'
[09:31:57] <Fornaxian> sjokkis, don't forget you need stack as well as heap in ram.
[09:32:25] <Fornaxian> if you set the heap to the full size of ram then the stack will clash and then you run out of memory,,even though you haven't used any yet.
[09:33:08] <Fornaxian> stack grows from the top down.
[09:33:12] <Fornaxian> heap grows from the bottom up.
[09:33:22] <Fornaxian> if the two meet then the system has a nasty hickup.
[09:33:28] <sjokkis> Fornaxian: it allocates stack for each task from the total heap, from what i've gathered
[09:33:59] <Fornaxian> ok..I'm thinking about the AVR itself and basic avr-libc stack and heap.
[09:34:04] <sjokkis> Fornaxian: but there would be a "total" stack as well, for avr registers and stuff
[09:34:18] <sjokkis> Fornaxian: so i guess i can set the heap size to be ram size - global stack size
[09:34:19] <Fornaxian> have never used an OS on an avr yet.
[09:34:25] <Fornaxian> yeah.
[09:34:34] <Fornaxian> give it some room for that system stack.
[09:34:46] <sjokkis> yeah, so i gotta figure out what size that is
[09:34:55] <Fornaxian> give it 1K and it should be fine.
[09:35:17] <Fornaxian> unless you have lots of nested functions in the OS side which I doubt.
[09:35:37] <sjokkis> i'll give it 1k, and that still leaves me 7k to play with which is loads
[09:35:41] <sjokkis> (famous last words)
[09:36:08] <Fornaxian> what processor you using?
[09:36:14] <sjokkis> at90usb1287
[09:36:20] <Fornaxian> aahh.
[09:36:34] <Fornaxian> usb incorporates into the freertos system ok?
[09:37:07] <sjokkis> haven't tried that yet. it's on a dev board i have, with lots of peripherals. so far i've set up sampling a joystick using adc and i'm running a small oled display
[09:37:11] <Fornaxian> was thinking the atmega1284 would be awesome for running freertos as it has lots and lots of ram...16K
[09:37:20] <sjokkis> next i'm gonna interface with a can bus controller on the board
[09:37:27] <sjokkis> which is probably gonna be a fun can of worms
[09:37:33] <Fornaxian> hehe.
[09:37:39] <Fornaxian> have looked at but never played with CAN bus
[09:37:42] <sjokkis> i've heard nothing good about implementing CAN
[09:37:45] <Fornaxian> mostly SPI and i2c
[09:38:08] <sjokkis> i'll be doing this with SPI
[09:38:10] <Fornaxian> as I don't interface with my car, I haven't had much need for CAN
[09:38:20] <sjokkis> oh, CAN is used for lots more than cars
[09:38:24] <sjokkis> that's just where it originated
[09:38:27] <Fornaxian> yeah.
[09:38:48] <Fornaxian> did make a bunch of light controllers for a DJ friend of mine a while back though...that was fun and interesting.
[09:38:59] <Fornaxian> using nordic rf chips and AVRs.
[09:39:21] <Fornaxian> doing wireless DMX more or less.
[09:39:47] <sjokkis> i think this will be wireless as well, but with the wifi controller i have it should be pretty transparent
[09:40:06] <sjokkis> so essentially no extra work compared to wired
[09:46:33] <megal0maniac> Does anyone here know anything about how motorbikes read speed from the engine? (Instead of the front wheel). I.e. what kind of hardware is used / signal is generated
[09:47:46] <megal0maniac> I'd like to put an attiny between the speedo and the engine and give it a calibration value, so I can correct the reading to compensate for different sized sprockets
[09:48:09] <megal0maniac> tzanger: Was it you that was tearing an Audi apart recently?
[09:48:25] <sjokkis> megal0maniac: on cars i believe it's a sensor in the transmission that measures rotation of the driveshaft
[09:49:04] <megal0maniac> sjokkis: Do you know what kind of signal? Is it just a contact closure or something more complex?
[09:49:10] <sjokkis> no idea
[09:49:22] <megal0maniac> Someone must know!
[09:49:39] <sjokkis> my father built a sensor like this for ship engines. i think it used magnetics
[09:50:12] <sjokkis> that's how wikipedia says electronic speedometers for cars do it
[09:53:07] <twnqx> hall effect sensors?
[09:53:34] <Tom_itx> yep most likely
[09:54:41] <Tom_itx> more immune to harsh environments than other types
[09:55:21] <megal0maniac> Which would mean contact closure. The AVR would introduce it's own error, but it would probably be more accurate than without it
[09:55:32] <twnqx> contact closure?
[09:55:42] <twnqx> nono
[09:55:50] <megal0maniac> No?..
[09:55:52] <twnqx> hall effect sensors are free of mechanics
[09:56:04] <twnqx> it's change of current
[09:56:33] <megal0maniac> Oh bugger. I'm confusing reed switches
[09:57:02] <megal0maniac> Would that be easy to interface to a uC, and mimic an output?
[09:58:11] <Tom_itx> define easy
[09:59:43] <megal0maniac> Mmm... low component count
[09:59:51] <Tom_itx> yes
[10:00:05] <Tom_itx> much less than a motherboard
[10:00:09] <twnqx> lol
[10:00:45] <Tom_itx> i think i drew one up once
[10:04:57] <Tom_itx> http://www.motionsensors.com/speed-sensors/hall-effect-speed-sensors.shtml?gclid=CMK19ovt8LkCFSlo7AodJGUAAA
[10:07:17] <Tom_itx> http://www.youtube.com/watch?v=9BFdGtvo9JE
[10:13:10] <megal0maniac> Hmmm... I should check that there isn't a calibration setting somewhere already. Would be the clocks, I assume. I think I've found the wires for the pickup, but it's very closed off and I see nothing on the front sprocket. Must be inside the gearbox...
[10:14:11] <Tom_itx> http://store.arduino.cc/ww/index.php?main_page=product_info&cPath=16&products_id=96
[10:16:08] <Tom_itx> commonly used on autos for abs braking as well
[10:21:01] <sjokkis> hm. i've made a buffer in software for my display, and when i write from it the last fourth of it is garbage
[10:21:09] <sjokkis> but i've allocated enough stackspace for it
[10:21:11] <sjokkis> what gives
[10:23:45] <sjokkis> i'm writing to the buffer every second, and it switches between something resembling what i'm trying to write, and garbage
[10:23:54] <sjokkis> like something else is writing to the same memory area
[10:23:58] <sjokkis> but i'm not crashing either
[10:24:36] <twnqx> i used a buffer
[10:24:52] <twnqx> that would occasionally wrap around in the end, and send the whole memory space out :P
[10:33:40] <sjokkis> writing the buffer the opposite way puts garbage at the top, so it's def the buffer itself
[10:33:50] <sjokkis> adding a second buffer of the same size puts lots of garbage in the middle
[10:33:52] <sjokkis> weirdness
[10:47:10] <learath> anyone very familiar with eemem & atmelstudio?
[10:53:29] <megal0maniac> Yamaha really doesn't want me to play with their stuff. Just gave up trying to open the clocks.
[10:54:13] <megal0maniac> Tom_itx: Judging by that, I should get either 5V or 0V out of the thing, and thus a logic high or logic low. So I wouldn't need any external components for input or output
[10:59:25] <Tom_itx> it depends on the type of sensor used
[10:59:37] <Tom_itx> some require op amps etc and have analog out
[11:04:44] <megal0maniac> I guess the best would be to measure what it's putting out. If I can get to those damn wires :/
[11:05:54] <megal0maniac> If they require external circuitry, it'll probably be inside the clocks, so might be tricky. Would need to generate an output that would survive going through that circuit again
[11:06:57] <Tom_itx> are you gonna use an exhisting one or make one?
[11:08:18] <megal0maniac> Well if it's in the clocks, I don't think I can get to it. So I'll need to have one for the uC to read it, then condition the output so that it still makes sense after going through the opamp/whatever in the clocks
[11:08:56] <Tom_itx> i know someone that used one on a lathe spindle, i'll find out what one it is later
[11:09:05] <Tom_itx> uk isn't up yet
[11:11:13] <megal0maniac> There's a good chance I'll end up not doing this, but I know I'm going to be annoyed when I change the final drive ratio and the speedo goes all backwards
[11:12:10] <Tom_itx> maybe the mfg has different calibration settings for it
[11:12:12] <Tom_itx> i'd ask
[11:12:26] <Tom_itx> a simple firmware update may do it
[11:13:23] <megal0maniac> They said "Just stick with stock". It's a YBR250, not one of the fancy competition models, so updating firmware is probably out of the question
[11:19:48] <megal0maniac> Hang on, "uk isn't up yet"?
[11:20:02] <megal0maniac> It's 6pm here and we aren't more than 2hours away from UK
[11:20:18] <Tom_itx> ok well he isn't up yet
[11:20:35] <megal0maniac> lol
[11:21:25] <twnqx> megal0maniac: uk is 1h behind us
[11:21:30] <twnqx> 17:04 there :P
[11:22:16] <megal0maniac> Maybe he's ill
[11:22:26] <megal0maniac> You're in DE, right?
[11:22:44] <twnqx> yes, same time zone as yours
[11:22:54] <Tom_itx> no
[11:23:01] <twnqx> what
[11:23:01] <megal0maniac> Yes
[11:23:12] <twnqx> south africa and central europe have the same time
[11:23:20] <Tom_itx> https://picasaweb.google.com/lh/photo/Of6lsgdXzIDmIRxQI0WZONMTjNZETYmyPJy0liipFm0?feat=directlink
[11:23:26] <Tom_itx> at least i found his project
[11:23:47] <megal0maniac> Holy crap
[11:23:51] <megal0maniac> That looks cool
[11:24:14] <megal0maniac> And his profile pic is someone on a bike. Looking good
[11:24:53] <Tom_itx> https://picasaweb.google.com/lh/photo/JTR29Tkv4zcmFph_DvNYRdMTjNZETYmyPJy0liipFm0?feat=directlink
[11:25:27] <Tom_itx> look thru his gallery, he might mention it.. i dunno
[11:27:15] <megal0maniac> His bike is absolutely nothing like mine :P
[11:27:18] <jadew> Casper, sorry, was afk
[11:27:24] <jadew> well, away from town more like it
[11:27:42] <jadew> haha, love the screenshot
[11:27:50] <Tom_itx> the sensor isn't for a bike
[11:28:19] <jadew> Casper, quick question, how many channels can you record at once?
[11:28:32] <tzanger> megal0maniac: no, I don't have an audi
[11:30:34] <megal0maniac> Then it was twnqx or jadew
[11:30:45] <megal0maniac> Or someone else
[11:30:55] <twnqx> <-
[11:31:32] * twnqx likes hunting bikes, so slow in corners~
[11:31:49] <megal0maniac> ?
[11:31:52] <jadew> I didn't follow the discussion, but I don't have an audi either
[11:32:09] <Tom_itx> nor do i
[11:32:28] <twnqx> guy recently only dared to enter a corner at ~160kmh on a bike.. so i could easily pass him there
[11:32:37] <twnqx> sadly he came back on the following straight :P
[11:32:41] <Tom_itx> i do have a couple owie's
[11:32:53] <megal0maniac> jadew: twnqx had all the elctrical bits of his audi on his living room floor
[11:33:03] <twnqx> all? lol
[11:33:09] <megal0maniac> Lots
[11:33:10] <Tom_itx> does he drive in his living room?
[11:33:15] <twnqx> a tiny piece
[11:33:24] <twnqx> just the engine controller and the cable for it
[11:33:33] <megal0maniac> That's more than my entire car
[11:33:39] <megal0maniac> It has a carb
[11:33:47] <twnqx> (yes, ALL those cables went only to sensors and actuators on the engine...)
[11:33:55] <megal0maniac> The OBD connector is for the odometer and service light
[11:36:06] <jadew> heh, nice
[11:36:18] <jadew> I always wanted to dissasemble my car
[11:36:20] <megal0maniac> twnqx: So then you'll know, where does your speedometer read from, and what kind of sensor?
[11:36:39] <twnqx> heh
[11:36:46] <twnqx> in fact i don't
[11:36:55] <twnqx> i know i have to hall effect sensors on the engine
[11:37:09] <twnqx> and thanks to automatic transmission that would suffice to get the speed
[11:37:28] <twnqx> no wait, there's a torque converter
[11:37:32] <megal0maniac> jadew: http://i.imgur.com/j24qcl.jpg
[11:37:35] <twnqx> so engine rpm does not map to speed.
[11:37:58] <GuShH> twnqx: don't quit your dayjob
[11:41:40] <megal0maniac> So the general concensus is hall effect sensor
[11:42:24] <GuShH> you'd be looking at a hall effect switch, not a sensor.
[11:47:02] <twnqx> i'd take a full sensor
[11:47:16] <twnqx> with digitla interface
[11:47:18] <GuShH> you don't need to sense a magnetic field you just need 1 or 0
[11:48:07] <megal0maniac> Well wouldn't you be able to get an actual angle with a sensor? For purposes other than speedo
[11:48:16] <GuShH> the strength of the field is irrelevant
[11:49:05] <GuShH> speedo is secondary to rpm measurement, speed is determined by other factors which involve gear ratios, etc.
[11:50:56] <megal0maniac> Oh duh. My bad
[11:50:59] <GuShH> for instance take a cheap bicycle speedo, without external input such as the circumference of the wheel, it cannot possibly display an aproximate speed.
[11:51:20] <GuShH> approximate*
[11:51:34] <megal0maniac> You /should/ measure speed from the last part of the drivetrain. I.e. wheel
[11:51:48] <GuShH> but it can display RPM and the position of the magnet / hall effect switch is irrelevant.
[11:53:17] * GuShH shivers at automatic cars
[11:54:26] <GuShH> heavier, more expensive, higher maintainance cost, higher replacement cost, you pay more and you get in average a slower car.
[11:54:28] <twnqx> because there's no conatnt rpm->speed ratio, like with mine? :>
[11:54:36] <twnqx> constant*
[11:54:42] <GuShH> nothing is constant
[11:54:50] <GuShH> and not all wheels will move at the same rate at any given point in time
[11:54:51] <twnqx> also, do you consider double-clutch cars automatic?
[11:54:54] <GuShH> welcome to reality
[11:55:16] * megal0maniac shivers at cars
[11:55:24] <GuShH> twnqx: anything with a torque converter and servos changing gears, one way or another, is seen as automatic by me :p
[11:55:25] <twnqx> or do you explicitly mean torque converter automatics?
[11:55:46] <twnqx> with double clutch you have servos shifting geras
[11:55:49] <GuShH> megal0maniac: well I'm more of a motorcycle nuthead.
[11:55:50] <megal0maniac> heavier, more expensive, higher maintainance cost, higher replacement cost, you pay more, less mpg and they get stuck in traffic
[11:55:51] <twnqx> but no torque converter :P
[11:56:01] <GuShH> twnqx: hydraulic pressure more accurately
[11:56:08] <twnqx> maybe
[11:56:24] <GuShH> the servos are just your equivalent of a solenoid valve
[11:56:35] <GuShH> opening and closing hydraulic ports
[11:56:56] <twnqx> i still laugh at bikers not being able to corner at decent speeds
[11:57:02] <twnqx> (e.g. the one my car does)
[11:57:52] <twnqx> i had to put a foot on the break because the idle speed of my car was faster than one bike u-turning in front of me
[11:58:34] <twnqx> and a guy that was passing me at like 240 on the orad slowed down to ~140 in a corner i easily take at 180-200
[11:58:52] <megal0maniac> Yes but you drive a spaceship
[11:58:58] <twnqx> nah, just a car
[11:59:05] <twnqx> not even a good one, just a decent one
[11:59:53] <megal0maniac> twnqx: http://www.mycars.co.za/img/PV1002354/b/208091.jpg
[11:59:53] <twnqx> most of the electronics is just comfort (which you don't have on bikes either)
[12:00:06] <megal0maniac> I have electronics for the headlights and indicators
[12:00:12] <megal0maniac> Oh! And central locking
[12:00:33] <twnqx> how good are your windscreen wipers in heavy rain? :>
[12:00:34] <megal0maniac> But no, you're not going to corner at any kind of speed
[12:00:54] <megal0maniac> They're okay, not great but I can see
[12:01:05] <Tom_itx> you don't need wipers at speed, the wind clears it just fine
[12:01:06] <megal0maniac> Also I live in Cape Town. We don't get much heavy rain
[12:01:21] <twnqx> btw, i can't open your image "because it contains errors"
[12:01:45] <megal0maniac> It's a car, not an error!
[12:01:48] <Tom_itx> works just fine
[12:01:55] <Tom_itx> you call that a car?
[12:02:15] <twnqx> heh
[12:02:19] <megal0maniac> It looks like one, it sounds like one and it drives like one
[12:02:21] <twnqx> mom had one of those too
[12:02:25] <twnqx> 30 years ago
[12:02:35] <Tom_itx> they had weak main bearings
[12:02:44] <megal0maniac> It's the "citi golf". 2005 model golf 1 re-make
[12:03:00] <twnqx> ... why would you remake that
[12:03:03] <megal0maniac> fixed some things
[12:03:15] <megal0maniac> twnqx: It's a reliable, inexpensive car
[12:03:16] <GuShH> twnqx: high end bikes have more comfort than most cars
[12:03:18] <Tom_itx> take off of the rabbit
[12:03:19] <megal0maniac> I'm a student
[12:03:33] <GuShH> including AC, audio system, massager and heater for the seats, etc, etc.
[12:03:40] <megal0maniac> Easily 30-40% of students have one of those here
[12:03:44] <twnqx> > audio system
[12:03:45] <twnqx> heh
[12:03:51] <Tom_itx> student discount?
[12:03:59] <megal0maniac> No, just cheaper
[12:04:00] <GuShH> abs, etc.
[12:04:03] <GuShH> your car doesn't have abs
[12:04:04] <megal0maniac> And a breeze to maintain
[12:04:38] <megal0maniac> My bike has a fuel injector, but it's still very basic. Commuter
[12:06:03] <twnqx> ... my car doesn't habe abs?
[12:06:13] <twnqx> are there even cars still made without?
[12:06:39] <twnqx> (i thought ABS and ESP were mandatory under EU law)
[12:30:17] <vsync_> GuShH: to talk about high end bikes one should also talk about high-er end cars for the comparison to make sense
[12:32:19] <vsync_> and doesn't take too high end of a car, to have all of those, well except for 'massager'
[12:32:39] <vsync_> also is probably pretty fail
[12:43:10] <twnqx> vsync_: i know audi A8 and mercedes S class have hot stone massage seats :P
[12:43:37] <twnqx> can't comment on how good they are, though
[12:44:00] <vsync_> not all of them
[12:44:02] <sjokkis> found out why my buffer was fucked. i was writing heap and stack to the same area in memory.
[12:44:16] <vsync_> it's something you _can_ get, and still is prolly shit :p
[12:44:17] <sjokkis> so configTOTAL_HEAP_SIZE is not what i thought it was
[12:44:32] <sjokkis> i thought stack would be allocated from that space. seems not
[12:44:44] <vsync_> twnqx: worked on both this summer, a 2013 A8 and a 2013 mb s
[12:45:03] <twnqx> vsync_: well yeah, they offer them as an option, of course
[12:45:10] <vsync_> and both of which, i don't see the point how on earth one would pay so much for a car
[12:45:19] <twnqx> heh
[12:45:20] <vsync_> the s-class clocked in at 170k €
[12:45:27] <vsync_> can't remember the audi
[12:45:32] <twnqx> if i had that kind of spare money... why not
[12:45:39] <vsync_> i wouldn't
[12:46:00] <vsync_> also you need much more than that. It's an expensive car to keep
[12:46:18] <twnqx> sure
[12:46:36] * twnqx looks what he spent on his car this year....
[12:46:58] <vsync_> yeah well but, insuring a car like that is kind of expensive
[12:47:12] <vsync_> also servicing it and gas
[12:47:17] <twnqx> yeah, i pay ~1k€ per year for mine
[12:47:18] <twnqx> :P
[12:48:28] <vsync_> heh yeah
[12:48:44] <vsync_> the only way i'd pay 170k for a car is if it would fly
[12:49:01] <twnqx> i'd buy a mercedes SLS if i had the money :/
[12:50:15] <vsync_> i'd buy me some elkos right now if some shop would be open
[12:50:38] <vsync_> i think elkos are a far better investment than a mercedez-scheisse
[12:50:56] <vsync_> chances are they'll last longer :p
[12:52:35] <twnqx> heh :P
[13:38:46] <sjokkis> any of you guys know of a neat graphics library for the avr?
[13:39:08] <sjokkis> i've got this display working nicely, but it feels like such a hassle to write all my own draw functions etc
[14:06:30] <OndraSter__> sjokkis, but will it run crysis?
[14:06:54] <sjokkis> hopefully it will
[14:07:16] <OndraSter__> nice
[14:07:21] <OndraSter__> 2D b&w crysis? :D
[14:07:37] <vsync_> im running 3dmarks on ks0108
[14:07:56] <vsync_> 'sup
[15:15:38] <megal0maniac_afk> I long for the day when they'll let us use AVRs and we can stop messing around with AND gates
[15:16:15] <megal0maniac_afk> Two breadboards worth of ICs could be compressed into 20 lines of code on an attiny
[15:16:30] <megal0maniac_afk> And my clock would be more accurate
[15:16:39] <vsync_> what you working with
[15:16:49] <Casper> jadew: can't take my car right now :(
[15:17:10] <Casper> the repair was successfull
[15:17:18] <Casper> but now....
[15:17:27] <Casper> my hood is hooked to the fence! :D
[15:17:48] <megal0maniac_afk> vsync_: Building a counter with flip flops, and various discreet logic. 3bit output, set sequence, counts up or down
[15:17:56] <megal0maniac_afk> Outputs to 7seg
[15:21:33] <vsync_> megal0maniac_afk: awesome =D
[15:21:36] <Casper> megal0maniac_afk: now, make a 4 digits alphanumerical one
[15:22:18] <megal0maniac_afk> Casper: I could, but no
[15:22:32] <Casper> lazy :D
[15:22:52] <megal0maniac_afk> Casper: Oh, with an AVR? Yeah, sure. Give me 5 minutes :P
[15:23:05] <Casper> it'S doing stuff like that that you realise why microcontrollers are being used for such a simple task nowadays
[15:23:13] <megal0maniac_afk> Yeah...
[15:23:29] <Casper> 1 minute left, time to go outside
[15:23:44] <megal0maniac> Waiting for you scope to boot up? :D
[15:23:49] <megal0maniac> *your
[15:24:33] <megal0maniac> Ooh! Have a look at this: http://blog.notdot.net/2012/10/Build-your-own-FPGA
[15:33:21] <Casper> megal0maniac: no, I'm painting my car hood
[15:34:05] <megal0maniac> So... you're waiting for paint to dry :P
[15:34:13] <Casper> ya
[15:37:22] <jadew> just as fun as watching cement dry
[15:38:46] <Casper> actually, more fun
[15:38:51] <Casper> as it's faster
[15:39:00] <megal0maniac> And there are exciting fumes
[15:39:07] <megal0maniac> They always make it more interesting
[15:39:12] <jadew> was about to say that
[15:39:18] <jadew> it smells nicer too
[15:39:45] <megal0maniac> Like when I lined a radio studio's walls with carpet tiles using contact glue. No windows. Great day
[15:40:47] <megal0maniac> Casper: Repair or changing it?
[15:41:12] <jadew> http://it.peacereporter.net/upload/immagini/img1/fotogallery/2006/RomaniaUrsic/P6054142.JPG
[15:42:31] <Casper> rust removal
[15:42:46] <megal0maniac> Nice. I have quite a bit of that to do :(
[15:42:57] <megal0maniac> Rust + chrome = :(
[15:43:02] <Casper> time for first clear coat
[15:47:02] <Casper> first clear done
[15:54:29] <Casper> there we go, both manuals are completed :D
[15:54:34] <Casper> now, to read them
[16:50:38] <Casper> jadew: the rs232 decoder isn'T that bad finally
[16:50:57] <Casper> when you set the trigger to it and set it to auto trigger
[16:53:26] <Casper> jadew: http://img534.imageshack.us/img534/9905/9t9z.png
[16:53:46] <Casper> 9600 8n1 with a clipboard paste in the terminal
[17:09:42] <jadew> Casper, nice
[17:09:51] <jadew> how come there are no lines between the samples tho?
[17:10:00] <jadew> why is your display set to dot mode?
[17:11:16] <jadew> you like it better like that or there's another reason for it?
[17:12:35] <Casper> still experimenting
[17:12:46] <jadew> ah, ok
[17:13:00] <Casper> but
[17:13:09] <Casper> there is still no log of events for the data..
[17:16:59] <Casper> jadew: too many functions to that scope
[17:17:26] <Casper> but with all that, there seems to be 1 lacking feature in the math stuff: watts :D
[17:17:52] <jadew> what watts?
[17:18:24] <jadew> how would it calculate power?
[17:19:04] <jadew> man... datasheets are full of lies
[17:19:48] <jadew> was checking out a mosfet "50 mOhm rdson" I think "NEAT!" then I check the graph... at -60 celsius!
[17:20:32] <jadew> actually, by the look of that graph it's more like -90 or -100
[17:22:14] <twnqx> heh
[17:22:24] <twnqx> yeah, and only at certain currents as well
[17:22:31] <jadew> yep
[17:23:15] <Casper> food time
[17:23:20] <Casper> and yes calculate
[17:23:22] <jadew> I wasn't aware of that particular propery of mosfets when I designed this project, now I need to find new transistors
[17:23:27] <jadew> Casper, enjoy
[17:23:35] <Casper> ch1 = V, ch2 = A, math 1*2
[17:23:37] <Casper> :D
[17:23:42] <Casper> but don't see that
[17:24:02] <jadew> Casper, yeah, but you need to tell it how to translate the voltage on ch2 into A
[17:24:06] <jadew> what's the relation
[17:24:20] <jadew> altho, I guess a 1:1 conversion would be fine too
[17:24:27] <jadew> you'd just use a 1 Ohm resistor :P
[17:24:39] <jadew> or do the amplification yourself
[17:27:58] <jadew> looks like buying the absolute cheappest transistors is not always the best approach
[17:29:13] <jadew> anyway, at least now I know my design is fine and the voltage drop is just a result of my cheapness
[17:32:33] <jadew> Casper, please keep taking screenshots while you're testing things, it looks more and more interresting
[17:44:08] <Casper> jadew: you can actually tell the scope to display "V" or "A" and set the probe ratio
[17:44:36] <jadew> oh... then yeah... they missed that feature I guess
[17:44:47] <jadew> you could make a feature request, could be introduced in future firmware
[17:44:56] <Casper> and when you say in dot mode... I'm in vector mode
[17:45:09] <Casper> but I'm quite zoomed out, hence the "garbage"
[17:46:10] <jadew> ah... the lines weren't visible
[17:46:55] <Casper> basically... "hello world!" 12 bytes at 8n1 = 120 bits... quite alot on that small screen
[17:48:44] <jadew> yeah
[17:49:26] <jadew> I've sent an e-mail to my local Rigol distributor asking for the DS1000Z availability and prices
[17:49:35] <jadew> maybe I'll sell my current one and get that one
[17:50:31] <jadew> did you get to try recording several channels at once?
[17:58:09] <Casper> not yet
[17:58:32] <Casper> the most multi-channel yet is enabling the second channel by mistake :D
[19:06:46] <Tom_itx> megal0maniac_afk, here's the hall sensor the dude used: http://www.ebay.com/itm/5pcs-ATS667LSGTN-T-Gear-Tooth-Sensor-IC-/161045445299?pt=LH_DefaultDomain_0&hash=item257f0e7ab3
[19:12:18] <Tom_itx> +5v GND and IO
[19:16:46] <megal0maniac_afk> Tom_itx: funny looking thing... Thanks!
[19:18:55] <Tom_itx> digikey has them it appears
[19:19:06] <Tom_itx> http://www.digikey.com/product-detail/en/ATS667LSGTN-T/620-1328-6-ND/2042763
[19:19:25] <Tom_itx> the first was Avago, the digikey one Allegro
[19:19:50] <Tom_itx> no magnetics required, it's built in
[19:20:16] <Tom_itx> appears one pin may be a test pin so +5 GND and one IO
[19:21:58] <Fornaxian> http://www.digikey.com/product-detail/en/ATS667LSGTN-T/620-1328-2-ND/2042753
[19:22:02] <Fornaxian> same thing half price?
[19:22:55] <Tom_itx> no
[19:23:04] <Tom_itx> look at the quantities
[19:23:20] <Tom_itx> it's always cheaper by the thousand
[19:23:27] <Fornaxian> oh...ok..oops.
[19:23:41] <Fornaxian> yeah...800 quantity
[19:25:21] <Tom_itx> yeah, pin 3 is test... tie to GND
[22:19:21] <Casper> jadew: the rs232 decoder work with the data on screen, so it can work even if there is a bit shifting or alike
[23:08:35] <Casper> jadew: http://www.youtube.com/watch?v=iC8xDZo7bIY ← sorry, the camera didn't liked the backlight, so a bit hard to see...