#avr | Logs for 2014-04-18

Back
[00:02:48] <anton02_> i will repeat my question in case anyone missed it
[00:02:51] <anton02_> i wonder if its possible to run a usb mouse thats capable of serial mode with a ps/2 adapter to run in serial mode without a ps/2 adapter
[00:02:54] <anton02_> also, i wonder how you check if your usb mouse is capable of serial mode
[00:20:29] <Casper> the adapter is a pin changer
[00:20:34] <Casper> so yes
[00:20:47] <Casper> did your mouse came with the adapter?
[00:20:57] <Casper> if not then it's not
[01:44:00] <anton02_> Casper: dont know, just found the mouse in my house
[01:44:51] <anton02_> but ive found another one since then that has a ball in it and is ps/2 to boot
[02:21:06] <anton02_> Casper: i checked my usb mouse's microcontroller and according to this it does ps/2 too http://www.sunplusit.com/english/products/peripheral/SPCP19E2A.aspx
[02:35:38] <Roklobsta> I have built an AVRDUDE 6.1 Win32 binary that supports FTDI chips in MPSSE mode and ELF format. http://helix.air.net.au/index.php/avrdude-and-ftdi-232h/
[02:36:00] <Roklobsta> I'd appreciate it being tested by anyone with any widget they have that works with avrdude.
[02:47:08] <anton02_> should i follow this pinout schematic to connect a usb mouse (serial capable) to a microcontroller?
[02:48:23] <anton02_> http://cdn.instructables.com/FLY/5QSY/GU3UHV7I/FLY5QSYGU3UHV7I.MEDIUM.jpg
[04:43:33] <anton02_> what do you think of having a long axle with wheels either side and then rotate the axle about its centre point with a servo vs a traditional steering rack for steering?
[06:38:09] <fourierboy> can you program avrs without the passives?
[06:38:12] <fourierboy> Using isp?
[06:40:58] <antto> passives?
[06:52:22] <Fleck> ;p
[07:03:36] <NeedHelp> Can someone help me to make custom character in atmega128
[07:04:27] <antto> Fleck btw, i managed to use two timers at the same time in my atmega2561
[07:04:45] <Fleck> antto: shoot! :)
[07:05:07] <antto> an 8bit one (firing at 1000Hz) and a 16bit one (firing at 4800Hz)
[07:05:28] <antto> timers 2 and 4 iirc
[07:06:49] <Fleck> the problem was vectors, no?
[07:06:49] <fourierboy> antto, yeah, caps etc and crystal
[07:07:30] <Fleck> fourierboy: set fuses to internal osc. and off you go!
[07:07:38] <antto> Fleck well, i don't know what i did last time, but the init code of one of the timers was slightly wrong (one bit was not set correctly)
[07:08:06] <antto> i revisited the datasheit, and rewrote the init code
[07:08:20] <fourierboy> Fleck, are default fuses internal osc?
[07:08:25] <fourierboy> Normally
[07:08:25] <Fleck> antto: well, I still can't run vectors for timers with bootloader enabled, but w/o bootloader
[07:08:35] <Fleck> fourierboy: yes!
[07:08:39] <fourierboy> cool
[07:08:44] <fourierboy> What about decoupling caps
[07:08:47] <fourierboy> They are needed right?
[07:08:58] <Fleck> recommended!
[07:09:11] <Fleck> kinda thumb of rule, you know! :)
[07:09:18] <fourierboy> Ok, thanks. Must be my dodgy soldering as know avrdude response
[07:09:32] <fourierboy> no*
[07:09:41] <Fleck> hmm
[07:09:56] <Fleck> try lowering program speed
[07:10:35] <Fleck> I have wasted many hrs because of this - usbasp was trying to programm too fast, and got no response each time!
[07:10:43] <fourierboy> Yea
[07:10:44] <fourierboy> OK
[07:10:45] <fourierboy> Thanks
[07:11:33] <Fleck> I think it was -b option for avrdude
[07:11:40] <Tom_itx> -B
[07:12:03] <Fleck> or -B yes
[07:12:08] <Fleck> morning Tom_itx!
[07:12:49] <antto> Fleck timers 1 and 2 actually http://pastebin.com/gG18pMFy
[07:12:52] <antto> 0 is 8bit
[07:13:26] <Fleck> antto: ok but running timers was not the problem here, as said before! :/
[07:13:53] <antto> well, other than that, the vector thing
[07:17:54] <Fleck> I think some day I will investigate this even more antto! :) One thing I noticed is that usbasp is not uploading correctly, and, maybe that's the problem!
[07:18:08] <Fleck> I need AVR MK II
[07:18:38] <antto> i had bad luck with my usbasp
[07:18:48] <antto> (well, it was a chinese version)
[07:19:06] <Fleck> same here
[07:19:15] <antto> first, it wasn't writing the fuses
[07:19:24] <antto> then it stopped working totally
[07:20:08] <Fleck> ohh, no, never had any problems with fuses, but, with uploading fw.. and for atmega2560, never had any problems with atmega8/168/328/attiny13 etc
[07:20:14] <antto> ehm, i even updated it's firmware to the newest version - still doesn't work
[07:20:51] <Fleck> yeah
[07:21:57] <NeedHelp> but can someone help me
[07:22:11] <Roklobsta> interesting AVR based comms board. http://www.atx-pro.com/
[07:22:46] <Fleck> NeedHelp: not, if you don't state your problem!
[07:22:56] <NeedHelp> ok i tell more
[07:23:31] <NeedHelp> i want to make character ä but in atmega128 doesnt have it so i should make it by myself
[07:23:51] <NeedHelp> but i dont have even a clue how to make it
[07:25:37] <Fleck> where do you output those NeedHelp?
[07:26:14] <NeedHelp> excuse me
[07:27:01] <NeedHelp> what do you mean
[07:28:29] <Fleck> heh, well, why do you need ä?
[07:29:05] <NeedHelp> in my project :) have to write it it lcd
[07:29:20] <Fleck> ahaa, there you go - so you need to output them on LCD
[07:29:24] <Fleck> what kind of lcd is this?
[07:29:26] <NeedHelp> yes :)
[07:30:11] <NeedHelp> what do you mean about what kind :) im newbie so ask easier questions :)
[07:30:14] <NeedHelp> 2x16
[07:30:24] <NeedHelp> if you meant that
[07:30:36] <Fleck> http://www.circuitvalley.com/2012/02/lcd-custom-character-hd44780-16x2.html
[07:32:18] <Fleck> also http://www.8051projects.net/lcd-interfacing/lcd-custom-character.php
[07:32:21] <NeedHelp> thanks but ... i dont have thee kind of commands in my library (lcdcmd) etc
[07:32:23] <Fleck> and many many more
[07:32:31] <NeedHelp> these*
[07:32:47] <Fleck> well, what lib do you use?
[07:33:04] <NeedHelp> lcd.h
[07:33:16] <NeedHelp> its kinda own library
[07:33:40] <NeedHelp> how could i present it to you
[07:33:42] <NeedHelp> pastebin?
[07:33:51] <Fleck> you have LCD_command() then?
[07:34:10] <NeedHelp> i dont think so
[07:34:36] <NeedHelp> where could i find it if i have
[07:35:11] <NeedHelp> http://pastebin.com/cwXECwyX
[07:35:18] <Tom_itx> if it's not in the LCD's character set you would have to make a special character
[07:35:19] <NeedHelp> this is what is in lcd.h
[07:35:49] <NeedHelp> and thats what im trying to do
[07:36:04] <Tom_itx> read the data sheet as to how to do that
[07:36:14] <Tom_itx> not something commonly done here
[07:36:38] <Fleck> you mean reading datasheets? :D or adding custom chars? :D
[07:37:28] <Tom_itx> take your pick
[07:37:36] <fourierboy> Fleck, Thanks for your advice, it worked
[07:37:36] <NeedHelp> im trying to make own custom char coz there wanst ä in lcd character set
[07:38:01] <fourierboy> Fleck, I pay the hard price of using cheap programmers :p
[07:38:18] <fourierboy> I thought it might have been the bloody hard part of the tiny package I am using :)
[07:38:23] <fourierboy> Instead of something so basic
[07:38:27] <Fleck> fourierboy: yeah, but I wasted much more time you did! :D
[07:39:20] <NeedHelp> fleck did you checked out pastebin link i send to you
[07:39:29] <Fleck> NeedHelp: sure
[07:39:45] <Fleck> lcd_write() seems to be function you need to use
[07:39:52] <NeedHelp> so what means same as lcd_command
[07:39:59] <NeedHelp> okey thanks!
[07:40:20] <NeedHelp> but it writes character to lc
[07:40:21] <NeedHelp> lcd
[07:40:26] <NeedHelp> is it right then
[07:41:13] <Fleck> well, check source for lcd_write()
[07:41:54] <NeedHelp> where i find it
[07:42:01] <Fleck> lcd.c? :D
[07:42:30] <NeedHelp> http://pastebin.com/EcgFZ7Wz
[07:43:32] <NeedHelp> i just need to know what in my library is lcd_command and lcd_send_data
[07:44:52] <Fleck> lcd_write() is your function: /* write a byte into register rs (0 = control, 1 = data). */
[07:45:10] <NeedHelp> so its same as?
[07:45:14] <Fleck> now check LCD datasheet and write data to registers you need!
[07:46:18] <NeedHelp> is lcd_write() same as lcd_send_data
[07:46:29] <Fleck> check source code for lcd.h
[07:46:31] <Fleck> err
[07:46:34] <Fleck> lcd.c
[07:48:00] <NeedHelp> okey but thanks i try to make own char and if i dont manage to do it then i come back here :)
[07:48:05] <NeedHelp> thanks advices
[08:00:21] <Fleck> Tom_itx: maybe you have a guide how to convert usbasp to avr mk II clone?
[16:37:23] <Fleck> antto: converting usbasp to avrisp MK II clone did not help! :D
[18:17:12] <antto> Fleck it must be the code then
[18:19:28] <Fleck> or maybe I need orig. avrisp MK II :D ?
[21:46:08] <anton02> If you have two motors each turning one axle each, how do you ensure that both operate at the same speed? How effective would PID feedback be?