#avr | Logs for 2014-03-09

Back
[08:08:08] <naquad> is there any working and up to date library for interfacing HD44780 based LCDs? i've found some by Peter Fleury, but can't get it working :(
[08:15:05] <Lambda-Aurigae> odd...I just used fleury's lib last week and it worked great.
[08:16:49] <Lambda-Aurigae> http://nongnu.org/avr-libc/user-manual/group__stdiodemo.html
[08:17:07] <Lambda-Aurigae> there's an avr-libc demo with some lcd code too.
[08:17:22] <Lambda-Aurigae> that is running in 4-bit mode.
[08:19:31] <Lambda-Aurigae> http://code.google.com/p/hd44780-avr-tools/ another one.
[08:19:37] <Lambda-Aurigae> haven't tried that though.
[08:26:32] <naquad> Lambda-Aurigae, my problem is that all i see on the screen are black squares on both rows
[08:26:52] <Lambda-Aurigae> sounds like your contrast is wrong.
[08:26:57] <naquad> erm
[08:27:00] <naquad> and how do i fix that?
[08:27:21] <naquad> i've got potentiometer connected to VO and spinning it doesn't make much difference
[08:27:59] <Lambda-Aurigae> http://homepage.hispeed.ch/peterfleury/starterkit-lcd-4bit.gif
[08:28:03] <Lambda-Aurigae> oh..
[08:28:06] <Lambda-Aurigae> then nevermind.
[08:28:12] <Lambda-Aurigae> if you have it connected properly.
[08:28:27] <Lambda-Aurigae> if V0 is the contrast...pin 3
[08:29:40] <naquad> btw
[08:29:44] <naquad> i don't have external crystal
[08:29:48] <naquad> and running 1MHz
[08:30:04] <naquad> maybe library considers chip to run on 4MHz?
[08:30:27] <Lambda-Aurigae> nope.
[08:30:30] <Lambda-Aurigae> shouldn't matter.
[08:31:38] <Lambda-Aurigae> you have a 10K pot connected between VCC and GND with the wiper connected to pin3, correct?
[08:32:41] <Lambda-Aurigae> everything I'm seeing that shows 2 lines of squares is a contrast issue..
[08:33:04] <naquad> Lambda-Aurigae, well, not exactly 10k, but 50k so i have it working only on something like 1/4 of the arc, but yes
[08:54:52] <Lambda-Aurigae> if you turn it and the display does not go dim then it's not working.
[08:59:47] <naquad> it first goes dim, then turns off
[09:02:37] <Lambda-Aurigae> well, then, try one of those other libs I posted earlier.
[09:03:09] <Lambda-Aurigae> I suspect something is hooked up wrong though..fleury lib has worked for everybody else I know who has used it.
[09:03:36] <megal0maniac_afk> naquad: Try this: http://pastebin.com/fq6DVwL7
[09:04:35] <megal0maniac_afk> Change lines 14, 15, 16, 18, 20 then 24, 25 and 40
[09:04:41] <megal0maniac_afk> Should work
[09:05:12] <megal0maniac_afk> Oh hang on, need to change something
[09:06:06] <megal0maniac_afk> Done
[09:13:58] <Lambda-Aurigae> megal0maniac_afk, that an 8bit version?
[09:14:13] <Lambda-Aurigae> naquad, I never did ask if you had it connected in 8bit or 4bit mode.
[09:15:49] <megal0maniac_afk> Oh whoops
[09:15:52] <megal0maniac_afk> Lambda-Aurigae: Yeah
[09:16:04] <Lambda-Aurigae> I'm not sure which way he has it connected.
[09:16:15] <Lambda-Aurigae> I always use 4bit mode myself just to save i/o pins.
[09:16:28] <Lambda-Aurigae> that and I usually connect through a pcf8574 chip too.
[09:17:05] <megal0maniac_afk> That's the next change I want to make to my lib. End goal is to run it using a shift register and an attiny10 (4 io pins, 1kb flash)
[09:17:16] <Lambda-Aurigae> I modded fleury's lib years ago to feed the data via i2c that way.
[09:17:34] <megal0maniac_afk> I2C is frightening compared to every other peripheral on AVR :P
[09:17:50] <Lambda-Aurigae> pcf8574 is an i2c to gpio chip..
[09:18:13] <megal0maniac_afk> I'm aware, I have some :)
[09:18:16] <Lambda-Aurigae> guess I've been lucky or just understand how it works instinctively..have never had any problems with it.
[09:18:34] <Lambda-Aurigae> I have a bunch of the 8574 and 8574a chips.
[09:18:41] <Lambda-Aurigae> TI sent me a sampler pack some years back.
[09:18:54] <megal0maniac_afk> I have this: http://www.ebay.com/itm/400465203362
[09:19:02] <Lambda-Aurigae> 4 each of every package the chip comes in, in both A and non-A versions.
[09:19:04] <megal0maniac_afk> Except the LED is on the last IO, not on a jumper
[09:20:21] <Lambda-Aurigae> I built a backpack like that once but it had 2 pcf8574 chips on it so it had the LCD, several buttons, and several LEDs.
[09:21:27] <Lambda-Aurigae> used it for an interface for a menu system written as a finite state machine...it was a learning thingie for me.
[09:24:12] <megal0maniac_afk> That's pretty much what I want to do as well. I think I2C shouldn't be so bad now that I fully understand interrupts
[09:25:47] <megal0maniac_afk> naquad: Where you go?
[10:20:17] <vsync_> hi avr
[10:20:53] <Lambda-Aurigae> hello vsync_
[12:32:03] <sabotender> yo!
[12:32:13] <sabotender> I am TOTALLY getting a STK500
[12:32:22] <sabotender> I am extremely excited
[12:34:04] <sabotender> does anyone else have this model device?
[12:35:50] <OndraSter> STK500
[12:36:00] <OndraSter> isn't that... from the 80s? :P
[12:40:18] <Lambda-Aurigae> stk500 was an early learning/dev board from atmel.
[12:40:19] <Lambda-Aurigae> I have one
[12:40:24] <Lambda-Aurigae> and an avr dragon
[12:40:39] <Lambda-Aurigae> neither of which I use really but keep them around just in case.
[12:41:36] <Lambda-Aurigae> isn't the stk600 the new model?
[12:43:18] <OndraSter> it is
[12:43:21] <OndraSter> and has been for quite some time
[12:43:24] <OndraSter> stk500 has rs232...
[12:43:31] <Lambda-Aurigae> yup.
[12:43:34] <Lambda-Aurigae> 2 of them in fact!
[12:43:37] <OndraSter> :)
[12:43:51] <Lambda-Aurigae> one for programming and the other for whatever you want.
[12:45:07] <Lambda-Aurigae> and it worked well with my cheapy usb-rs232 adapter
[14:11:36] <cart_man> HeyGuys... Why doesnt the execution of my Program stop at Breakpoints even though I am clicking on "Start Debugging and Break" Im using AVR studio 6
[17:19:31] <rue_shop3> hmm
[17:19:52] <Lambda-Aurigae> B flat
[17:19:55] <Lambda-Aurigae> we need a C sharp
[17:19:59] <Lambda-Aurigae> have another pot of coffee.
[17:20:25] <rue_shop3> I need to get groceries and price a new fuel injectof or the truck
[17:43:25] <xorm> jesus jesus jesus it's a KebabBob
[17:51:25] <xorm> jesus jesus jesus it's a KebabBob
[18:24:46] <Casper> rue_shop3: price of a new fuel injector OR of a truck? are they THAT expensive? :D
[18:25:11] <rue_shop3> heh
[18:25:16] <rue_shop3> well, almost it turns out
[18:25:31] <rue_shop3> but the truck completely behaved on thread of me reaplacing its injector
[18:25:42] <rue_shop3> I'll pull it this week and try to test it, see if it leaks
[18:26:02] <Casper> if it's like bro's minivan.... the radiator is like 850$ installed
[18:27:25] <Casper> that radiator is a combined engine + transmission + A/C one... all in one unit...
[18:27:42] <Casper> so it was the total...
[18:31:07] <Lambda-Aurigae> my wife hit a deer and totalled her suzuki vitara SUV...
[18:31:10] <Lambda-Aurigae> well, the deer didn't
[18:31:24] <Lambda-Aurigae> but it did damage the transmission intercooler part of the radiator.
[18:31:46] <Lambda-Aurigae> and when they towed it away the transmission/transaxle locked up all 4 wheels.
[18:31:58] <Lambda-Aurigae> which ripped it off the towtruck
[18:32:06] <Lambda-Aurigae> and it ended up in a ditch upside down.
[18:32:17] <Casper> so it was the fault of the towing
[18:32:33] <Lambda-Aurigae> yeah, ultimately, kindasorta.
[18:32:45] <Lambda-Aurigae> the owner of the towing company was the one driving the truck.
[18:32:53] <Lambda-Aurigae> said in 30 years of towing he had never had that happen.
[18:33:02] <Lambda-Aurigae> wrote us a check for what we owed on the vehicle.
[18:33:14] <Casper> he probably failed to put the transmission on neutral
[18:33:18] <Lambda-Aurigae> nope.
[18:33:28] <Lambda-Aurigae> he had it locked in neutral...special procedure on that vehicle.
[18:33:42] <Casper> o.O
[18:34:02] <Lambda-Aurigae> you put the key in a hole next to the shift lever and turn it to unlock the shifter then lock it into neutral for towing.
[18:34:20] <Lambda-Aurigae> the thing is all wheel drive and designed to be towed behind an RV or some such.
[18:35:00] <Casper> so... basically the shifter moved when he hit a bump?
[18:35:24] <Lambda-Aurigae> nope...when we went to get stuff out of it, it was still locked in neutral.
[18:35:44] <Lambda-Aurigae> the transaxle had no fluid in it, however..it all drained out through the intercooler apparently.
[18:35:48] <Casper> I don't see what happened then...
[18:36:07] <Casper> oh I see...
[18:36:11] <Lambda-Aurigae> we aren't sure how but the transaxle locked hard.
[18:36:39] <Casper> if somehow the transmission drained itself (gravity can do lots of things)
[18:36:54] <Casper> then the transmission can have ran out of oil
[18:36:55] <Lambda-Aurigae> he was towing it at about 35MPH and when it locked the wheels up it tore loose from the truck...there were 4 skid marks for all 4 tires.
[18:37:07] <Casper> the last stage of the transmission is still connected to the wheel
[18:37:22] <Casper> that may have ran dry, overheated and melted/fused
[18:37:29] <Lambda-Aurigae> yup....
[18:38:02] <Casper> so basically, it's an engineering issue
[18:38:23] <Lambda-Aurigae> she has a ford escape now.
[18:38:28] <Casper> or it happend more often than we know...
[18:38:50] <Casper> which might be why those towing are outlawed on highway here and also on long distances
[18:39:31] <Lambda-Aurigae> normally they would have used a flatbed truck to haul it but that truck was busy so they pulled out the regular towtruck for us..
[18:39:47] <Lambda-Aurigae> the owner of the towing company was a personal friend of the wife's family..
[18:39:55] <Casper> ouch...
[18:40:45] <Lambda-Aurigae> he almost brought the BIG towtruck but it was in for an oil change.
[18:41:01] <Lambda-Aurigae> their big ones are for towing fully loaded big rigs.
[18:41:43] <Casper> hehe
[18:42:40] <Lambda-Aurigae> have had people tell me they wouldn't go back to him for towing again.
[18:43:00] <Lambda-Aurigae> I would go back to him in an instant....
[18:43:23] <Lambda-Aurigae> he took responsibility for the problem and paid for it without a quibble.
[18:44:06] <Casper> like father... he praise a garage...
[18:44:13] <Casper> that ripped me and my boss
[22:38:14] <sabotender> hiya
[22:38:34] <sabotender> yay! i finally ordered a dragon :-D
[22:39:47] <Casper> don'T burn yourself on it!
[22:39:49] <timemage> you'll need to learn how to raise sheep.