#avr | Logs for 2015-09-18

Back
[00:38:57] <_28_ria> Casper: I was researching, that's why took long to answer.
[00:39:10] <_28_ria> Casper: but what about GPIO?
[00:39:36] <Casper> I doubt you can control them fast enought
[00:39:47] <Casper> the slowest chip would be a pci one
[00:40:08] <Casper> that is a 32 bits (read 32 gpio minimum plus whaever else it need) at 33MHz
[00:40:22] <Casper> most likelly you will need to do it all in software
[00:40:40] <Casper> the rpi is a toy, not a fast or reliable device
[00:41:06] <_28_ria> Casper: Yes, but not a typical RAID, I want to make, at least 3 of such NASes, connect 2-3 disks to them and join them all in a ceph cluster (make a ceph cluster, out of them)
[00:41:40] <Casper> also
[00:41:55] <Casper> are you aware that the network interface on the rpi is an usb2 one?
[00:43:34] <_28_ria> Casper: No, I wasn't
[00:44:18] <Casper> ARM cpu can do it, if you select the right one
[00:44:30] <_28_ria> So, I need to figure out how to make some tiny computer, where I can install linux with ceph and connect sata controllers myself.
[00:44:43] <Casper> like one with a pci or better, a pci-e bus
[00:45:24] <_28_ria> Do you know of any opensource ARM processor based boards I could repeat (make them), that would meet my requirements?
[00:45:25] <Casper> will you use raid 3/5/6 on it? or raid 0/1? or JBOD?
[00:46:02] <_28_ria> No, I need just a separate sata ports, not hardware raid.
[00:46:15] <_28_ria> I specifically want to make a ceph cluster
[00:46:28] <_28_ria> Do you know what's ceph?
[00:47:12] <Casper> no
[00:47:54] <Casper> depending on the cpu needed, you may want to consider those atom based board, they are cheap and may do what you want, depending on the sata port it have
[00:48:05] <Casper> I'm sure I saw some with 4, and gbit
[00:48:19] <_28_ria> It's a distributed, redundant network file system. Kind of like raid, but over the network and on top of a regular file system.
[00:51:55] <_28_ria> I was considering them at first, but wanted to experiment with raspberry pi, and them build something myself, similar but without graphics output, sound, etc. Only leave the networking, sata and, possibly usb on the board.
[04:06:53] <cart_man> Hey does anbybody here know of a good IC to keep the ADC Reference voltage stable?
[04:08:13] <Roklobsta> zener
[04:08:23] <cart_man> zener diode?
[04:08:38] <Roklobsta> zener vegetable.
[04:08:43] <Roklobsta> of course diode
[04:09:17] <cart_man> how will that keep my ref voltage stable though? sorry I do not get that
[04:09:51] <Thrashbarg> Zeners are used as voltage regulators. Use it as a shunt regulator and you'll have a stable voltage
[04:11:36] <Thrashbarg> cart_man: how stable do you want it and how much does the supply to the reference change?
[04:14:39] <cart_man> Thrashbarg,Well even if it Dibs I want it to act as a buck boost
[04:14:42] <cart_man> if its possible
[04:15:20] <cart_man> Thrashbarg,Because in this application the PSU might just dip...allot
[04:15:33] <cart_man> for a sec or 2
[04:16:16] <Thrashbarg> would you be worried about the micro losing power too? I mean if you have a reference voltage supply that's fine but it's not much good without power to the micro
[04:17:26] <cart_man> Thrashbarg,Oh I should rephrase that... the ripple voltage might go under the neede reference voltage
[04:17:34] <Thrashbarg> I see
[04:17:58] <Thrashbarg> what sort of voltage are we talking about?
[04:19:56] <cart_man> 4 volt
[04:20:15] <cart_man> I would like it to be 5 but since the IC will burn a little power I guess 4V is the next best thing
[04:22:02] <Snert> there is openups too.
[04:24:43] <Thrashbarg> cart_man: Check out the TL431? It's a 3 pin precision programmable reference
[04:34:02] <LeoNerd> What's wrong with the internal 1.1V ref?
[04:35:46] <cart_man> Thrashbarg, I am looking at that IC now but I dont get why it has a Input , Vo and VRef ? Should I supply the reference to... I am missing something here
[04:43:47] <cart_man> LeoNerd,Its too small
[05:11:04] <LeoNerd> cart_man: usual technique in that situation is to measure Vcc with respect to the reference, so now you know what Vcc is; you can then measure your input wrt. the now-known Vcc
[05:16:51] <LeoNerd> The first value gives you Vcc/Vref, the second value gives you Vin/Vcc, so you can simply multiply them together to obtain Vin/Vref
[05:37:23] <twnqx> LeoNerd: doesn't that mean you have to divide your vcc down with precision resistors to be in the range of vref?
[06:02:23] <LeoNerd> twnqx: No; you measure the value of Vref, using Vcc as the "reference"
[06:02:55] <LeoNerd> Almost all AVR chips have the ability to use Vcc as the ref (see the AREF bits), and measure the Vref through the mux (see the MUX bits)
[06:03:53] <LeoNerd> The point then is that you've measured Vcc/Vref, so that when you get Vin/Vcc you can *multiply* them, which is a lot cheaper than if you'd measured both in and ref wrt. Vcc and have to *divide*, which is harder on AVR
[06:07:00] <twnqx> interesting idea
[06:10:31] <twnqx> i have vcc with 1:1 divider, vusb with 1:1 divider, and an external voltage with a 10:1 divider on my ADC ins
[06:11:07] <twnqx> avcc is connected to vcc, too
[06:11:37] <twnqx> so i guess i could really calibrate it that way (not that i really need more precision)
[06:39:53] <aandrew> abcminiuser: the avrisp2... the src is available... why is the avrisp2 so unstable?
[06:40:50] <aandrew> I have never had great success with it. I mean it's just a ftdi with hw bitbang assist is it not?
[06:41:10] <aandrew> the dragon is way more stable but isp mode isn't exactly rocket science
[06:42:14] <abcminiuser> What? The AVRISP MKII isn't bit-bang
[06:42:39] <abcminiuser> It's a (obsolete now) USB PHY chip attached to an AVR8
[07:24:16] <aandrew> abcminiuser: I know it's not bitbang, I said hw assisted. it's a FT2232 with its odd mode that everyone uses
[07:36:04] <abcminiuser> Can't remember the manufacturer, but it's not FTDI
[07:36:23] <abcminiuser> AVR8 uses external PHY to talk to the PC, receives frames and SPI's out the data to the target
[08:09:35] <theBear> avrisp is a avr based one innit ?
[08:09:53] <theBear> all those ???isp sound the same to me
[08:10:17] <theBear> and adafruit is a good place to start searchin if ya know, you never heard of a search engine, cos it's effin hard NOT to find them
[08:10:42] <theBear> pretty sure the ones i thinkin of are based on vusb, even if ivan has a cooler vikinger name and did it first, ever, ANYWHERE
[08:12:49] <Snert> in system programmer I think
[08:13:28] <Snert> I shud get one of those.
[08:14:15] <LeoNerd> The little 6pin jobbies are nice; I have a set of AVR chip breakout boards that basically just mount a chip straight through to DIP headers but adds a reset button and ISCP6 header
[08:14:19] <LeoNerd> Very useful
[08:15:16] <Snert> I'm just not sure when I'd want to use one is all.
[08:15:36] <Snert> me not familiar with avrdude and such yet.
[08:15:38] <LeoNerd> I use it all the time when developing... it gives me a free way to have the ICSP ability on a breadboard
[08:19:55] <Snert> would I use an avr programmer if I brick my arduino?
[08:20:11] <LeoNerd> Maybe? Depends how you mean "brick"
[08:20:14] <twnqx> possibly
[08:20:25] <LeoNerd> Traditionally "brick" refers to a permanent breakage, so that's not recoverable
[08:20:49] <twnqx> oh, it could also refer to a fuse programming that's only recoverabl in HV mode
[08:20:49] <LeoNerd> But there are many things you could do to it that would make it unuseable currently as an arduino target, but be easily fixable given the right tooling
[08:20:59] <LeoNerd> I wouldn't call that "brick"
[08:21:06] <twnqx> i do
[08:21:24] <LeoNerd> "bricking" generally means that there is nothing anyone can do, even given any amount of tooling. It's permanently dead.
[08:21:24] <twnqx> since afaik you can't HV program arduinos
[08:21:44] <LeoNerd> Sure you can. Desolder the coupling cap and pullup R from the RST line first
[08:21:47] <twnqx> "bricked" routers can also often be fixed by using JTAG
[08:22:27] <twnqx> bricking generally refers to putting in a state where there is more than reasonable effort necessary
[08:23:20] <Snert> yea, common usage has expanded the meaning abit.
[08:23:49] <twnqx> and in the cased of arduino users
[08:23:56] <LeoNerd> In any case; I think we are all agreed on the general implications and are just disagreeing about the wording
[08:24:00] <twnqx> i'd say bricked means "i can't program via USB any more" :D
[08:38:44] <aandrew> abcminiuser: hm, I could have sworn ispmk2 was ftdi, I'll have to look at it again
[08:39:40] <abcminiuser> I'll bet you $ALL that it isn't, at least the legit ones aren't
[08:42:08] <aandrew> I am indeed mistaken. olimex's schematic shows an at90usb
[08:42:33] <aandrew> so... are these things just that bad or is there something that can be done to help the stability with these types of devices?
[08:42:54] <aandrew> I'm only asking you because it was revealed that your repo had the source for them so I'm considering you an expert :-)
[16:49:11] <Emil_> Hi
[16:49:27] <Emil_> So suppose I have an interrupt tied to a pin change
[16:50:04] <Emil_> What exactly happens when the pin changes state?
[16:53:26] <twnqx> the interrupt triggers.
[16:54:18] <Emil_> Nah, you are lying
[16:56:41] <twnqx> i'm not!
[16:56:47] <twnqx> that's what happens for me!
[16:57:22] <Emil_> Lies, lies all the way!
[17:32:03] <rue_mohr> twnqx, having troubles with pin change interrupts?
[17:32:16] <twnqx> why me?
[18:32:22] <rue_mohr> I got that impression reading back
[18:45:52] <hetii> Hi
[18:46:48] <hetii> Q: Any clue how to compile USBaspLoader for atmega8 at 12MHz ? I try different avr-gcc but always get address 0x3f8a of main.bin section `.text' is not within region `text'
[19:48:40] <Lambda_Aurigae> hetii, well, 0x3f8a is waaaay above the 8K of the atmega8.
[19:49:00] <Lambda_Aurigae> so you have to relocate the starting memory to the start of the atmega8 bootloader section.
[20:43:14] <rue_mohr> hetii, let me guess, your trying to run compiled java on an avr
[20:47:18] <aandrew> compiled java, lol
[20:47:55] <rue_mohr> there aren't too many terrible coding methods that could fill an avr
[20:48:10] <rue_mohr> c++ and java are right up there
[21:27:59] <theBear> rue_mohr, heh, maybe this'll cheer you up (i feel your pain, really i do !) "JavaEssentials.pkg" !!! the most oxymoronified possible name for a package from within an os-install !
[21:31:33] <rue_mohr> hmm
[21:32:23] <Casper> man
[21:32:38] <Casper> this 18V cordless jigsaw from dewalt
[21:32:41] <Casper> is really mean!
[21:32:56] <Casper> I just cut some 16 gauge metal sheet like if it was butter