#avr | Logs for 2015-11-18

Back
[07:11:44] * Yoduza want to know how that guy did make that pretty list https://www.joelw.id.au/FPGA/CheapFPGADevelopmentBoards
[07:12:48] <Lambda_Aurigae> what pretty list?
[07:13:21] <Lambda_Aurigae> I just see a list..nothing pretty or ugly about it.
[07:13:58] <Yoduza> :O
[07:15:09] <Yoduza> it is nice to see fpga list without arduino shit
[07:15:44] <Yoduza> avr + fpga = nice devboard ;P
[07:17:26] <Yoduza> i cant see $15 devboard there :`(
[07:20:23] <Yoduza> it need few years incoming to get normal devboard for coding from that list :`(
[07:22:41] <LeoNerd> I've yet to really find a need for FPGAs
[07:23:12] <LeoNerd> What do people use them for?
[07:32:26] <day> LeoNerd: look for a task that benefits parallelization
[07:32:34] <day> from*
[07:32:41] <LeoNerd> Yes.. I'm aware of the "on-paper" idea
[07:32:46] <day> a logic analyzer seems to be a common project
[07:32:55] <LeoNerd> I want to know in practice.. What actual realworld things do people /actually/ make?
[07:33:02] <day> ^
[07:33:35] <day> and if that sounds to simple make it a 16channel logicanalyzer/analog capability scope
[07:34:10] <LeoNerd> People make that, in practice? Rather than just buying one?
[07:34:43] <day> its called learning, hobby, interest, building a portfolio etc..
[07:35:28] <day> if you look logically at the hobby electronics its not worth pursuing. Almost all the things you build can be bought for a fraction of the price
[07:35:57] <LeoNerd> Heh... That's not in the slightest bit true :)
[07:36:05] <LeoNerd> All the things I make I make /because/ I can't find them elsewhere
[07:36:19] <day> what are you building?
[07:36:40] <day> i was talking about the common beginner - intermediate projects
[07:36:55] <LeoNerd> Well, yesterday I stuck a TS1102 on a board with a 0.1R resistor, gave it lots of different power connectors and a BNC socket, and now I have a ~1MHz current probe for my scope.. for £20
[07:37:23] <LeoNerd> 4mm binding posts, 0.1in pitch header x2, USB socket, on both input and output.
[07:37:43] <Yoduza> more ideas how to use it ! more ! more ! more !
[07:38:11] <LeoNerd> Previously I made an nRF24L01-based stage cueuing system
[07:38:36] <day> well and what are you using those tools for? :P
[07:38:38] <LeoNerd> A few RS485-linked base stations, some handheld radio modules with buttons or LEDs or whatever
[07:38:46] <LeoNerd> That one is for running a stage show
[07:38:52] <day> its not a final product, its just a means to build one
[07:39:14] <LeoNerd> Yah - about 2/3 of the time I'm building tools to make things with... rather than making things directly
[07:39:32] <LeoNerd> My next task is an attempt at something like a Bus Pirate but isn't so ungodly-aweful
[07:40:10] <day> LeoNerd: and thats where you enter the competition. China vs LeoNerd
[07:40:47] <LeoNerd> Who am I competing with?
[07:41:06] <LeoNerd> If I could buy a small handheld stage radio cueing system I would
[07:41:12] <LeoNerd> I couldn't find anyone else making it
[07:41:39] <LeoNerd> I can't find anyone else making a decent USB-attached SPI/I2C bus master with associated development peripherals like GPIOs/interrupts/power control/monitor
[07:42:01] <day> im currently trying to build a laser power meter. but when you realize that the most difficult part is boring calibration....meh
[07:43:22] <day> but at least im decent with the avr ADC now :)
[07:44:24] <day> atmega*
[07:48:01] <Yoduza> laser power meter :O
[07:48:45] * Yoduza dont know how to use his 3x arduinonano and 1x maplemini
[07:49:56] <Yoduza> 21000-51000 floating point operations per second there. For mining need 100000x time more.
[07:51:06] <Yoduza> like zx-spectrum :D
[07:51:33] <Yoduza> zilog z80 :D
[07:51:50] <Yoduza> 30 years - no progress
[07:52:17] <Yoduza> only 3x smaller the size. It is all.
[08:03:04] <day> size matters!
[12:03:57] <LeoNerd> Ugh... manalive...
[12:04:18] <LeoNerd> Has anyone ever played with a (Microchip) MCP23x17 GPIO expander? Either the I²C or SPI ones?
[12:04:49] <LeoNerd> It's a most bizarre chip. Even the SPI one needs you to send an I²C-style addressing byte first, containing the hardware address and R/W bit. And yes even the SPI chip has A0/1/2 lines
[12:05:16] <LeoNerd> Having done that, there's a config register to say if it's running in 2x 8- or 1x 16-bit mode. In the two different modes, most of the registers have *different* addresses
[12:06:25] <LeoNerd> Then there's the fact that the transactions over the "SPI" chip are either write *or* read.. It doesn't support both at once, a true SPI device would
[12:07:13] <LeoNerd> I think it's really an I²C chip with a token-effort SPI frontend on it... but that still doesn't explain the bizarre non-fixed register address
[12:09:28] <LeoNerd> Uhm. OK even worse, the address of the configuration register that puts it in one mode or the other *itself* changes between modes.
[12:10:27] <tpw_rules> is there any particular reason that v-usb is device only?
[12:10:50] <tpw_rules> it seems that being a host would be easier, especially since the host controls communication
[12:11:10] <LeoNerd> I have wondered that myself...
[12:11:26] <LeoNerd> I have considered writing a USB host driver... it wouldn't have to be great, as all I want to do is talk to a USB keyboard
[12:11:44] <LeoNerd> I expect such things are relatively tolerant of not-quite-full USB implementation in the host
[12:11:51] <tpw_rules> yeah that's what i need
[12:15:30] <tpw_rules> but i really don't want to get into usb shit
[14:32:01] <SomeV> Hi! Im trying to turn on a led on an Olimexino32u4 but it seems that the led does not want to turn on. http://pastebin.com/rUHsVYMi is the code and commands Im trying to do it with. There are no errors from the commands so I am a bit lost. If anyone would care to help I would very much appreciate it.
[14:53:30] <cehteh> SomeV: 0xff doesnt look right for just one io pin
[14:54:11] <SomeV> cehteh: I tried sbi and also just the particular bit pattern for that pin with same result.
[14:54:20] <DKordic> SomeV: URL to DevBoard docs?
[14:54:55] <SomeV> DKordic: Sorry, I do not know what you are asking for.
[14:55:08] <cehteh> why not C :D
[14:55:18] <DKordic> LEDs are usualy wired active low, so ``PORTB = 0''.
[14:55:20] <SomeV> DKordic: https://www.olimex.com/Products/Duino/AVR/OLIMEXINO-32U4/resources/OLIMEXINO-32U4.pdf ?
[14:58:33] <DKordic> ``Spartans What is your profession?! Assembly! Assembly! Assembly! ''
[15:02:09] <cehteh> turn led on in 10 bytes .... NOT :)
[15:03:26] <SomeV> I like to think of it "Have fun with 10 bytes"...
[15:03:54] <cehteh> mean the µC making fun of you
[15:05:40] <SomeV> That also, though I like to think myself somewhat superior to a piece of plastic etc
[15:22:44] <DKordic> SomeV: It seems they are active high. LED1: PORTE6, LED2: PORTB5. Try ``reset: sbi PORTE ,6; rjmp PC''.
[15:25:01] <SomeV> Try that verbaim or could I do "sbi PORTB, 6" as I have an external led connected to digital pin 10?
[15:28:10] <SomeV> Ok, no blinkenlights with that. have to find port E6 and give it a try verbatim
[15:31:35] <SomeV> DKordic: Thanks for all the help, but that did not work either. Will leave it for now as I would really like to solve it with MrSmashy at the moment :)
[15:34:50] <DKordic> SomeV: ``MrSmashy''?
[15:37:23] <SomeV> I guess he goes by many names?
[15:37:48] <DKordic> ``Digital pin 10''? Acording to linked schematic ``D10'' is PORTB6.
[15:38:50] <SomeV> Yes. So I set DDRB to all out, then write high to all PORTB.
[15:44:09] <DKordic> SomeV: Bootloader is mentioned on home page. How do You know loader (avrdude) have not failed.
[17:55:37] <Lambda_Aurigae> tpw_rules, there is a software only implementation of usb-host-otg-thingie for avr but it sucks and is unstable....usb host has much more to do than usb device.
[17:56:11] <Lambda_Aurigae> v-usb is a total hack as it is...turning it into usb-otg or usb-host would be nearly impossible.
[17:56:54] <Lambda_Aurigae> https://courses.cit.cornell.edu/ee476/FinalProjects/s2007/blh36_cdl28_dct23/blh36_cdl28_dct23/index.html#aboutus
[17:57:34] <Lambda_Aurigae> I found and played with that years ago.
[17:57:46] <Lambda_Aurigae> these days I just use a pic32 with usb-otg hardware.
[19:22:23] <tpw_rules> Lambda_Aurigae: oh dang
[19:22:41] <tpw_rules> i just didn't want the crap of more chip since my project works brilliantly with an 8 pin avr and ps2 keyboard
[19:22:58] <Lambda_Aurigae> yeah...usb host is,,,difficult.
[19:23:22] <Lambda_Aurigae> check out that link I posted...it's an older software and it worked,,mostly.
[19:23:48] <Lambda_Aurigae> but I suspect it's not gonna fit on most attiny chips.
[19:24:38] <tpw_rules> i have an 85
[19:24:40] <tpw_rules> but yeah
[19:24:47] <tpw_rules> why is it usb 2.0?
[19:25:36] <Lambda_Aurigae> some of the usb specs for 2.0 can be horked to work I suspect.
[19:26:12] <Lambda_Aurigae> it also wants to run on a 15MHz crystal.
[19:27:15] <tpw_rules> that's no problem for me. i wonder if i can detune the rc oscillator enough
[19:27:20] <tpw_rules> i have a stable reference i can calibrate it on
[19:27:40] <Lambda_Aurigae> will take some hacking on the software I suspect.
[19:28:19] <tpw_rules> eh it's probably not worth it. i suspect anybody who will want my product can easily obtain a ps/2 keyboard or mouse
[19:28:50] <Lambda_Aurigae> there are plenty out there to be had.
[19:29:18] <Lambda_Aurigae> I should play with the usb-otg on the pic32mx chips.
[19:31:58] <tpw_rules> ugh i need to stop coming up with projects though. i'm a freshman in college now and i've made so many cool projects that would easily be a senior project. but i can't reuse them :<
[19:32:01] <tpw_rules> and if it's work, it's hard
[19:33:08] <Lambda_Aurigae> I have piles of projects on the books that I've never started.
[19:33:17] <Lambda_Aurigae> most nobody other than me would ever be interested in.
[19:33:25] <tpw_rules> i don't really come up with them very fast though
[19:33:40] <tpw_rules> and they're "i want this now everything else be damned"
[19:33:44] <Lambda_Aurigae> if I let my mind wander I could come up with something new every day.
[19:34:56] <tpw_rules> you should license some to me in four or five years
[19:36:47] <Lambda_Aurigae> hehe.