#avr | Logs for 2014-10-08

Back
[00:08:00] <Casper> nite all
[00:10:14] <xrlk> ok
[00:37:56] <N1njaneer> And now after having mostly conquered the SPI bus on this SAM, I am also out. Night all!
[01:29:31] <anton02> what button do you press to toggle an IO register on and off?
[01:29:39] <anton02> in simulation mode
[04:27:42] <Valen> ey abcminiuser seen http://linuxgizmos.com/open-iot-alliance-to-tackle-smart-connected-leds/
[04:28:21] <abcminiuser> <pokerface.jpg>
[06:43:23] <avri_> I would like to use avrfid (http://svn.navi.cx/misc/trunk/avrfid/avrfid.S) on a digispark (http://digistump.com/products/1). The avrfid requires programming the attiny85's lfuse to 0xC0 (external clock with no divider). 1) I don't know if digispak would function afterwards. I wonder if its possible to have a powered attiny85 that runs a similar code at full speed, use an I/O pin with the inductor coil and pull it to ground for transmitting bits to the reader - th
[06:43:23] <avri_> at way I can have actual code running on the attiny besides the RFID tag. Any thoughts?
[07:00:55] <Lambda_Aurigae> well, that digispark has no external clock for starters.
[07:01:02] <Lambda_Aurigae> so max speed is 8MHz I think.
[07:04:06] <Lambda_Aurigae> and I doubt that device is compatible with how the rfid software works.
[07:04:45] <Lambda_Aurigae> you would have to change fuses to make the software work.
[07:04:59] <Lambda_Aurigae> in changing the fuses, you will break the usb bootloader functionality.
[07:35:34] <avri_> well... I was thinking of writing my own code to perform this same functionality. The reason avrfid requires changing the fuses is so it will have a clock, since the 1v it would get from reader by the inductor is not enough to run the internal clock of the attiny.
[07:36:51] <avri_> I was thinking of supplying external power to the chip, measure the voltage on the coil on an I/O pin instead, and have code on the attiny to pull the coil pin to ground when transmitting bits
[07:49:01] <yoloKoolaid> my sparkfun order is still on exception
[07:49:15] <yoloKoolaid> what am I paying them for
[07:49:18] <yoloKoolaid> kek
[11:22:07] <[F_F]> Is there an LISP to AVR compiler?
[11:22:15] <[F_F]> I want to put Lisp code into an AVR/Arduino
[11:25:57] <Tefad> you're a terrible person.
[11:30:18] <[F_F]> why?
[11:31:19] <Tefad> ((((((because)))))
[11:31:29] <kastein> were you dropped on your head as a child, or born that way?
[11:31:35] <Tefad> : x
[11:31:55] <Tefad> i think he might just perform that way
[11:33:01] <Tefad> oh and to assist those with OCD here you go )
[12:55:13] * LeoNerd idly muses on some sort of Scheme or Erlang AVR compiler for HA problems
[13:45:09] <[F_F]> but mah ))))))))))
[13:52:26] <twnqx> [F_F]: port brainfuck to avr for me, please
[13:53:09] <Tom_itx> rue_house did already
[13:58:32] <twnqx> oh
[13:58:35] <twnqx> cool
[14:01:11] <Tom_itx> he programmed an avr with it
[14:03:23] <Casper> is usb-parallel better than usb-serial for bitbang?
[14:04:10] <Tom_itx> http://hackaday.com/2013/02/27/interpreting-brainfk-on-an-avr/
[14:04:30] <Tom_itx> Casper neither is good
[14:04:46] <Tom_itx> i doubt parallel would work
[14:05:06] <Tom_itx> btw, i just finished milling some boxes
[14:26:20] <Casper> f*ng fly...
[14:26:38] <Casper> 2 days bugging me, can't kill it...
[14:53:30] <Casper> Tom_itx: you know, I just realised something..
[14:54:00] <Casper> last time I wanted to buy a programmer from you, you said you was about to get some case... (the first one)
[14:54:19] <Casper> so I decided to wait... now... well, the case issue is back D
[14:54:23] <Casper> :D
[15:04:22] <twnqx> i have a programmer
[15:04:31] <twnqx> that is fully inside the USB connector
[15:08:49] <wulax> how large is the USB connector?
[15:11:39] <twnqx> standard type A
[15:12:20] <wulax> that is handy
[15:12:27] <twnqx> https://www.ehajo.de/en/kits/programmer/usp-stick.html
[15:48:03] <hetii> Hi :)
[15:49:00] <Lambda_Aurigae> hello hetii
[15:58:51] <hetii> I found such way to have voltmeter with autorange http://www.cappels.org/dproj/10_Bit_LED_Digital_Panel_Meter/AUTO_RANGING_CIRCUIT.gif
[15:59:11] <hetii> and wonder how safe it is for mcu
[16:00:52] <Lambda_Aurigae> it's forbidden
[16:02:27] <hetii> Any other way to have autorange ?
[16:02:46] <Lambda_Aurigae> I meant, the page is forbidden
[16:02:54] <Lambda_Aurigae> Forbidden
[16:02:54] <Lambda_Aurigae> You don't have permission to access /dproj/10_Bit_LED_Digital_Panel_Meter/AUTO_RANGING_CIRCUIT.gif on this server.
[16:02:54] <Lambda_Aurigae> Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
[16:03:17] <hetii> What about this site? : http://www.cappels.org/dproj/10_Bit_LED_Digital_Panel_Meter/10_Bit_Auto_Ranging_LED_Digital_Panel_Meter_Using_ATMEGA8.html
[16:03:37] <LeoNerd> Latter one WFM
[16:04:53] <Lambda_Aurigae> seems to be ok.
[16:05:05] <Lambda_Aurigae> don't see why it wouldn't work.
[16:06:09] <LeoNerd> Looks cute
[16:08:15] <Lambda_Aurigae> I like the max133 or max134 though.
[16:08:20] <Lambda_Aurigae> bit pricier at 11 dollars each
[16:08:32] <Lambda_Aurigae> but a nice autoranging dmm with digital interface.
[16:08:39] <hetii> well... imagine that default state is for range 100v, then you connect it to some source where you can have unknow voltage and at the beggining you have for eg below 10v. then mcu will switch to 10v range and if you have a peak to 100v then question is if this mcu will enable back divider to 100v
[16:08:51] <LeoNerd> I realised recently that given I can get an ATtiny for like, GBP2 or so, there's little point buying special-case chips for more than that if I can easily recreate them
[16:09:07] <LeoNerd> Having a box of ATtiny chips and a burner is like having my own silicon fab plant :)
[16:09:10] <hetii> otherwise you can get on this pin over 20v.
[16:09:18] <Lambda_Aurigae> LeoNerd, yup.
[16:09:40] <LeoNerd> At least, if speed or special features aren't important
[16:10:07] <Lambda_Aurigae> hetii, I would go with some kind of an opamp with limiting feedback with digital pot to do the autoranging
[16:10:31] <Lambda_Aurigae> several ways to drown the cat without using buttermilk.
[16:11:15] <hetii> well.. not sure if had enougth space on final board to ad it
[16:13:34] <twnqx> attiny for 2 pounds?
[16:13:36] <twnqx> wow
[16:13:41] <twnqx> uk really is expensive
[16:13:51] <LeoNerd> tin84
[16:14:00] <Lambda_Aurigae> one thing I would do to that ADC0 input pin though...put a 5V zener diode on it.
[16:14:05] <LeoNerd> That's approximate; I forget offhand. I'm also somewhat amortizing chipping cost in there
[16:14:08] <Lambda_Aurigae> between the pin and GND.
[16:14:16] <Lambda_Aurigae> that would keep the pin from ever going over 5V.
[16:15:15] <Lambda_Aurigae> then, for the autoranging feature, you could start at the lowest range and if it reads max, go to the next range up.
[16:19:05] <hetii> Lambda_Aurigae: but then how fast need he be before it destroy pin
[16:19:36] <Lambda_Aurigae> no clue.
[16:20:08] <Lambda_Aurigae> but it's a system the that is used for vusb when running the AVR at 5V..you use a 3V zener to keep the voltage into the usb port down.
[16:20:08] <LeoNerd> Provided the zener current isn't too high, the input resistor will take care of that
[16:20:39] <hetii> I also see that instead zener some plp use two diodes like in4148 or schotky, one to ground and second to vcc
[16:21:05] <LeoNerd> Yah; that might work too but it has the 0.7V margin
[16:21:34] <hetii> like : http://i.stack.imgur.com/oKptw.png
[16:21:51] <hetii> so what is better to use ?
[16:36:07] <LeoNerd> Can't wait for my bits to arrive.. still got about £50 of "bits" in transit for 3 different projects
[16:36:24] <LeoNerd> Slightly apprehensive that all I can do is sit and wait for now
[16:36:43] <Lambda_Aurigae> I've been collecting bits for years and years.
[16:36:45] <theBear> that's expensive data
[16:38:38] <LeoNerd> Well, yeah.. I have a load of boxes; this is all just final specialist bits.. e.g. two I2C current/voltage monitor boards.. the Adafruit INA219s
[16:50:22] <Tom_itx> twnqx, that's still a bit banged programmer
[16:50:34] <twnqx> likely
[16:50:43] <Tom_itx> for sure
[16:54:21] <xrlk> I am waiting a bunch of parts
[16:54:36] <xrlk> fedex left my arm mcus @ a store
[16:54:44] <xrlk> so I'll pick that up on thursday
[16:54:52] <xrlk> aka tomorrow
[16:55:39] <xrlk> sparkfun just shipped my parts
[18:52:36] <blundar> anyone familiar with WDT operation?
[18:54:20] <Tom_itx> what about it?
[18:55:08] <Tom_itx> either disable it or service it every so often
[19:03:20] <theBear> yeah, watchdog are a pretty standard and traditional kinda concept
[19:04:50] <xrlk> my tracking number is now working
[19:05:08] <xrlk> so many parts that I am waiting for
[19:05:20] <xrlk> can't wait to start tho
[19:15:24] <Tom_itx> i keep my watchdog on a log chain
[20:13:48] * Casper thinks he'll order some new avr soon...
[20:13:53] <Casper> just don't know which ones..
[20:14:04] <N1njaneer> All of them
[20:14:22] <Casper> N1njaneer: only if you pay for them :D
[20:14:23] <N1njaneer> Or start playing with the SAM devices.
[20:17:24] <Tom_itx> Casper, batch is in the oven
[20:25:22] <Casper> Tom_itx: :D what about the case?
[20:28:06] <Tom_itx> i did a few of those this afternoon
[20:35:35] <blundar> with watchdog in ISR mode, it's only going to be useful if ISRs are enabled? I'm fairly certain that the MCU is locking up when interrupts are disabled. The system reset watchdog seems like a better get out of jail card in this case but it would be really nice to have a little more control that *smack* reset
[20:36:09] <blundar> I guess what I'm asking boils down to "is the watchdog ISR disabled with the cli instruction?"
[20:36:31] <blundar> From my reading of datasheets, the answer appears to be "yes"
[20:40:02] <N1njaneer> The watchdog does not have an ISR - it performs a soft reset. And CLI will not stop this from happening.
[20:40:25] <timemage> N1njaneer, some do have a different mode where it generates an interupt.
[20:40:41] <N1njaneer> timemage: Which models? I've never come across that.
[20:41:13] <timemage> N1njaneer, probably best to just get blundar's model.
[20:41:27] <timemage> blundar, which is?
[20:43:09] <timemage> N1njaneer, hmm, the 2313 seems to qualify
[20:43:30] <timemage> N1njaneer, check page 39 of the datasheet.
[20:44:12] <N1njaneer> DOC8246 for the ATTINY2313A?
[20:44:35] <timemage> N1njaneer, i'm looking at 2543.
[20:44:45] <timemage> N1njaneer, http://www.atmel.com/images/doc2543.pdf
[20:45:10] <N1njaneer> Ahh yes, it does have a Watchdog Timer Overflow! Interesting.
[20:46:01] <timemage> N1njaneer, yeah, i think that's the "enhanced" bit. it might be an option in the atmel mcu product selector. was going to look...
[20:46:16] <N1njaneer> So yeah, I guess you can hook it to an optional interrupt depending on how configured. It just... seems like a risky thing to do. :)
[20:46:40] <N1njaneer> Was unaware! I learn something new from here every day!
[20:47:04] <N1njaneer> I've only used it for critical halt detection for reset purposes thus far.
[20:47:24] <timemage> N1njaneer, i don't know for the avr, but some are set such that you can configure it to give you so many cycles in that isr and then reset occurs anyway.
[20:47:28] <N1njaneer> But I suppose this gives you more versatility if there's something more special you'd like to do with it. I stand corrected :)
[20:50:29] <timemage> blundar, N1njaneer , http://www.atmel.com/Images/doc2551.pdf "The Enhanced Watchdog Timer has three modes of operation. When operating in WDT System Reset Mode, a WDT timeout causes a system reset. If WDT Interrupt Mode and global interrupts are enabled, a WDT timeout sets the WDT Interrupt Flag and executes the WDT Interrupt handler, instead of resetting the system. If both WDT System Reset Mode and WDT Interrupt Mode are enabled, the first WDT
[20:50:29] <timemage> timeout is handled as if only WDT Interrupt Mode was enabled. Then WDT Interrupt Mode is disabled automatically and the WDT is back in only WDT System Reset mode. " so yeah, seems you'd need interrupts enabled to expect the handler to run.
[20:54:40] <N1njaneer> Good call, timemage!
[21:03:11] <timemage> blundar, that last document seem to do a pretty good job of explaining the different ways you can use it.
[21:53:08] <Tom_itx> Casper, how many you want?
[22:10:21] <Tom_itx> hackvana how's the board business going?
[22:18:49] <Casper> Tom_itx: of?
[22:19:20] <Tom_itx> plain or blue
[22:19:29] <Tom_itx> i have some blue ones done now
[22:21:00] <Casper> already?!?
[22:21:34] <Casper> you already got your milling up and working?!?
[22:22:06] <Tom_itx> yeah
[22:22:24] <Tom_itx> had a couple problems with it but it's going
[22:23:28] <Casper> wow hee... didn't expected it to be that fast yay
[22:24:10] <Casper> is ddns01.com free? or you're paying for it?
[22:24:33] <Tom_itx> if it warnt free i wouldn't have it
[22:24:55] <Tom_itx> i got back in town sooner than i figured today so i got after it and made a handfull
[22:25:16] <Casper> ok
[22:29:28] <Casper> Tom_itx: what can't I program with it?
[22:30:08] <hackvana> Tom_itx: Very nicely thank you
[22:30:12] <hackvana> I really like helping people
[22:30:23] <hackvana> And #hackvana is always busy :-)
[22:30:26] <Tom_itx> got anything else goin on?
[22:30:29] <Tom_itx> cool
[22:30:32] <hackvana> Oh, plus it feeds my family
[22:30:38] <Tom_itx> or just the board thing...
[22:30:45] <hackvana> PCBs keeps me fully occupied at the moment
[22:30:50] <Tom_itx> great
[22:30:53] <hackvana> I'd like to be doing other things, but not there yet.
[22:30:58] <Tom_itx> i tell everybody i come across
[22:31:17] <hackvana> I've seen that a few times. I really appreciate it, thank you.
[22:31:27] <hackvana> Hackvana's growth has been purely through word of mouth