freeworm
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 12:41:49 AM Last edit: July 14, 2013, 01:08:35 AM by freeworm |
|
Hi BBKcoins, I would like to share my experiences so that you can have more samples to evaluate your design and find the potential instability As I mentioned before I am using the exact circuit as you drew for the clock generation with RC values 100ohm and 30Pf. The two NOR gates are all 74AUP1G02 on your BOM. From my oscilloscope I can see that the rising and falling edge are not as sharp as yours but better than using only one NOR gate. I mounted 8 chips on the board and currently 6 chips are fully working. I have checked pins of the last two chips again and again. I cannot find any soldering problem and all the signals are correct (clock, config, report, powers). I'll re-solder them later. I have been running this board for a while (~ 1 hour) at 300MHz. The HW is above 10% which is similar to terrahash's board. Here's the statistics "Errors / Chip 0": "0000 0000 0048 0037 0028 0034 0020 0036 ", "Nonces / Chip 0": "0002 0000 0281 0276 0276 0273 0302 0268 ",
Very strange the last chip returned only two good nonces after 1 hour running. I want to thank you for your great work. The board is working basically. However, I have to say when it's massively produced, HW might be a big issue. Some boards like yours may work great with low HW but others like mine and terrahash's may not.
|
|
|
|
chaoztc
Newbie
Offline
Activity: 24
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 01:40:47 AM |
|
@bkkoins: regarding the signal trace with inverters: better place a capacitor near at each gate
the "new" signal looks good, pic spec states: rx input pin have to be stable 10ns before falling clock and 15ns after falling clock.
|
|
|
|
BkkCoins (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 02:17:51 AM Last edit: July 14, 2013, 02:39:59 AM by BkkCoins |
|
Hi BBKcoins, I would like to share my experiences so that you can have more samples to evaluate your design and find the potential instability As I mentioned before I am using the exact circuit as you drew for the clock generation with RC values 100ohm and 30Pf. The two NOR gates are all 74AUP1G02 on your BOM. From my oscilloscope I can see that the rising and falling edge are not as sharp as yours but better than using only one NOR gate. I mounted 8 chips on the board and currently 6 chips are fully working. I have checked pins of the last two chips again and again. I cannot find any soldering problem and all the signals are correct (clock, config, report, powers). I'll re-solder them later. I have been running this board for a while (~ 1 hour) at 300MHz. The HW is above 10% which is similar to terrahash's board. Here's the statistics "Errors / Chip 0": "0000 0000 0048 0037 0028 0034 0020 0036 ", "Nonces / Chip 0": "0002 0000 0281 0276 0276 0273 0302 0268 ",
Very strange the last chip returned only two good nonces after 1 hour running. I want to thank you for your great work. The board is working basically. However, I have to say when it's massively produced, HW might be a big issue. Some boards like yours may work great with low HW but others like mine and terrahash's may not. Thank you for sharing. I have some ideas for others to test to improve the error rate. I am quite certain now that it is related to USB induced noise. The PIC docs indicate that no external parts are needed but it seems that not enough or incorrect conditioning is done internally in the chip. Chaoztc also suggested checking the USB GND, and I think he may be spot on with that. I scoped my board connected to the RasPi instead of my notebook and the 1.2V core is much cleaner now. It does not have the 100Hz/100kHz/100MHz noise I posted about earlie, and only shows 600hKz buck reg pulses. I'm thinking that noise came in from the notebook via USB and by adding some ferrite beads there we may be able to improve noise enough to improve substantially. In my case with the RasPi it has run overnight in exactly the same location, same PSU but has 109 errors for 16243 hash, or 0.6%. I don't have access to ferrite beads here. Not in a timely fashion. I'd suggest 3 things to test. 1. add a 0.1uF cap next to PIC on VCC-GND to improve decoupling because I think the one that is there is not enough. This I will test myself this morning to see if inadequate decoupling is causing data glitches in the PIC. 2. pull the USB conn off board and test with 3 ferrite beads. Use a 120 ohm on the D+ D- lines, and a 220 ohm on the GND connection USB GND to board GND. The specific parts are: BLM18BB121SN1D 120 ohm, 200mA BLM21PG221SN1D 220 ohm, 2A It may be enough to add just the GND one if the PIC has internal conditioning. So try that first. I noticed that my noise problem was on the GND plane as well. 3. scope the power before and after. Obviously if this makes a big difference then I'll need to get it into the revised board, which means moving the PIC slightly - though I think the pending revision for QFN pkg is small enough to fit with beads.
|
|
|
|
BkkCoins (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 02:21:18 AM Last edit: July 14, 2013, 02:36:27 AM by BkkCoins |
|
is special coding necessary for cgminer or will it just plug and play (or just ad an option like the icarus-options for USB block erupters)?
Keep up the good work!
Once the klondike driver is pulled back into the cgminer repo, it will be available by just compiling with klondike enabled. After that it is auto detect and plug and play. You can add cmd line or conf file options to specify clock rate and temperture / fan details. For now you would build using my fork http://github.com/bkkcoins/cgminer-klondike
|
|
|
|
freeworm
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 02:39:24 AM |
|
2. pull the USB conn off board and test with 3 ferrite beads. Use a 120 ohm on the D+ D- lines, and a 220 ohm on the GND connection USB GND to board GND. The specific parts are:
BLM18BB121SN1D 120 ohm, 200mA BLM21PG221SN1D 220 ohm, 2A
FYI, I use a USB line with a ferrite bead on it like this ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2F7%2F73%2FCable_end.JPG%2F220px-Cable_end.JPG&t=665&c=-Vn4b3nO_8Iwhg) I guess this is a different ferrite bead which isn't connected to any line as shown in this picutre ![](https://ip.bitcointalk.org/?u=http%3A%2F%2Findustrialcomponent.com%2Fimages%2F3dalugkitlg.jpg&t=665&c=6mJ6edHz-ltuqw) This ferrite bead has no help. I will test yours when I have them in hand.
|
|
|
|
BkkCoins (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 02:45:14 AM |
|
2. pull the USB conn off board and test with 3 ferrite beads. Use a 120 ohm on the D+ D- lines, and a 220 ohm on the GND connection USB GND to board GND. The specific parts are:
BLM18BB121SN1D 120 ohm, 200mA BLM21PG221SN1D 220 ohm, 2A
FYI, I use a USB line with a ferrite bead on it like this ![](https://ip.bitcointalk.org/?u=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2F7%2F73%2FCable_end.JPG%2F220px-Cable_end.JPG&t=665&c=-Vn4b3nO_8Iwhg) I guess this is a different ferrite bead which isn't connected to any line as shown in this picutre ![](https://ip.bitcointalk.org/?u=http%3A%2F%2Findustrialcomponent.com%2Fimages%2F3dalugkitlg.jpg&t=665&c=6mJ6edHz-ltuqw) This ferrite bead has no help. I will test yours when I have them in hand. Yes, I noticed that this type of core on the cable helped with big RF surges like when the fridge or FL light nearby turned on, which caused resets, and when scoped shows up as huge flashes on power line, but did not help with error rates and repetitive smaller noise. The beads above go in the circuit, in series between connector pin and current traces. It may be easier to use a cuttoff USB cable and wire them on the end and then solder to tiny conn. traces. I did that on my first prototype board (but without beads).
|
|
|
|
chaoztc
Newbie
Offline
Activity: 24
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 02:55:34 AM |
|
remove the shield of the usb cable. only let red (5V), black( GND), white and green (data) go to the board. the at least the ground-loop is cut off.
ferrite bead: perhaps you have a old mainboard lay around?
600khz buk reg: do you have mounted both asic bukregs? but only use 1 for the asics and the other one is "idle"
|
|
|
|
BkkCoins (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 03:07:46 AM |
|
remove the shield of the usb cable. only let red (5V), black( GND), white and green (data) go to the board. the at least the ground-loop is cut off.
ferrite bead: perhaps you have a old mainboard lay around?
600khz buk reg: do you have mounted both asic bukregs? but only use 1 for the asics and the other one is "idle"
The 5V is n/c anyway. Good idea on mainboard - I do have an old ASUS P4 board here I can hack up. I'll check that out today. Right now I have to go into town for something, so it'll be a few hours. Both buck regs are mounted but only one side is used. You're thinking the unused one, not under load is putting out RFI to the other. I'll be adding more chips to the 2nd bank soon. The 600kHz noise isn't much anyway - just small blips compared to the noise I was getting from USB.
|
|
|
|
chaoztc
Newbie
Offline
Activity: 24
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 03:17:14 AM |
|
yes (hopefully) the idle buck regulator do the noise. You can try to hookup a small load (resistor, 50-100mA) to the regulator.
|
|
|
|
BkkCoins (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 10:26:32 AM |
|
Some people have been struggling with getting cgminer and klondike working on RasPi. Here are the steps I used that worked. This assumes you create a Rasbian server boot SD card, and that you can get it to boot, start networking either with LAN or Wifi, and login with ssh. sudo apt-get update sudo apt-get install autoconf libtool libncurses-dev yasm curl libcurl4-openssl-dev pkg-config libusb-1.0 git clone https://github.com/bkkcoins/cgminer-klondikecd cgminer-klondike ./autogen.sh --enable-klondike make ./cgminer 2>>cgminer.log (add -D if you want lots of debugging info during testing) You can edit ~/.cgminer/cgminer.conf and add a klondike-options item or use the cmd line.
|
|
|
|
mrm0
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 89
Merit: 10
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 12:32:47 PM |
|
Good idea on mainboard - I do have an old ASUS P4 board here I can hack up. I'll check that out today. Right now I have to go into town for something, so it'll be a few hours.
If you don't find anything suitable on that mainboard and think I can be of assistance again, let me know: http://www.maritex.com.pl/pl/shop/products/ggid/15955
|
1BUcKJVz5n34VwuiyiLtPud1PGn3BLkcPb :-)
|
|
|
BkkCoins (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 12:54:40 PM Last edit: July 14, 2013, 01:55:06 PM by BkkCoins |
|
Good idea on mainboard - I do have an old ASUS P4 board here I can hack up. I'll check that out today. Right now I have to go into town for something, so it'll be a few hours.
If you don't find anything suitable on that mainboard and think I can be of assistance again, let me know: http://www.maritex.com.pl/pl/shop/products/ggid/15955Thanks for the offer. It's mostly the time that is an issue. **** NEW FLASH ****I was busy with other commitments most of today, but I'm just getting back to it. Here's an interesting data point: If I hook up my USB via a cheap pocket hub to my notebook the error rate drops right off to < 1% (short test so far). So there's a quick fix for those wanting to see if the USB noise is causing the error issues. My guess is that the hub has correct EMI filtering beads on it's connections and acts as the filter we need. Looking at this now - EMI2121 http://www.onsemi.com/pub_link/Collateral/EMI2121MT-D.PDF
|
|
|
|
gurvy
Newbie
Offline
Activity: 6
Merit: 0
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 03:56:06 PM |
|
Are those usb ports on the notebook black or blue usb 1 or 2 ? notebook and usb and pc hubs all power the 5 volt usb differently, then there are the powered hubs , I really think that's a power regulation issue vs EMI issue . Try a powered hub instead and see if your result changes.
|
|
|
|
BkkCoins (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 04:05:17 PM |
|
Are those usb ports on the notebook black or blue usb 1 or 2 ? notebook and usb and pc hubs all power the 5 volt usb differently, then there are the powered hubs , I really think that's a power regulation issue vs EMI issue . Try a powered hub instead and see if your result changes.
The Klondike doesn't draw power from the USB port at all. And definitely USB 2.0 on my notebook. It's old but not that old ![Smiley](https://bitcointalk.org/Smileys/default/smiley.gif) USB hubs have ferrite beads or EMI/ESD chips. I noticed with the hub on my notebook it is less error rate but not as low as the RasPi. Using the RasPi is also very low when direct connected without hub, but there are no beads or chip there so I assume the SoC controller there has decent filtering, plus it probably just has a lot less noise on it. --- The EMI/ESD chips are a bit hard to decipher. They're either USB 1.1 and have termination included, or they're 2.0 and not clear on whether they're suitable for Full Speed (1.1) mode. I don't want termination in the chip as the PIC already does that, and it could get conflicted. I'd go with the EMI2121 chip as it has filtering and ESD protection and is tiny, 2.2mm, but I want to be sure it's suitable for Full Speed signalling. They only indicate High Speed in the data sheet. The alternative is to just put 3 ferrite beads D+,D-,GND.
|
|
|
|
cp1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 05:00:51 PM |
|
You could always add some error checking to ProcessIo if all your errors are coming from communicating with cgminer.
|
|
|
|
ionstorm
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 07:03:35 PM |
|
is there pins to short to turn the klondike K16 on? How will these be switched on after plugging into a psu?
|
|
|
|
BkkCoins (OP)
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 07:36:54 PM |
|
You could always add some error checking to ProcessIo if all your errors are coming from communicating with cgminer.
I don't think the errors are in USB data but I could be wrong on that. The low level serial engine is supposed to be taking care of error checking. From what I know it sends a NAK to say it detected an error and the host re-sends. I think the issue is noise on the USB GND polluting the K16 GND. I say this because I scoped some pretty bad noise on the ALL the power rails including GND, and that goes away when it's connected to the RasPi along with the errors. So my thoughts right now are that a ferrite bead on each USB signal and GND will filter that noise. Also, according to the Full Speed spec the cable shield is supposed to be connected directly to the GND plane, but it's unclear if that's part of the problem or the bead from signal GND will clear that up or if the shield needs a bead or should just be disconnected. is there pins to short to turn the klondike K16 on? How will these be switched on after plugging into a psu?
No. If the power is on at the connector then it's on for the board. IF you wanted to switch power for each board individually you would need to put switches in the power line to the board. Which is not much different than if I had pins to short as you'd need a switch for that, except it could be momentary rather than on/off. The firmware allows for disabling the clock, thus disabling hashing, which cuts power use to very low, which would be like an idle mode.
|
|
|
|
ionstorm
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 07:48:30 PM |
|
You could always add some error checking to ProcessIo if all your errors are coming from communicating with cgminer.
I don't think the errors are in USB data but I could be wrong on that. The low level serial engine is supposed to be taking care of error checking. From what I know it sends a NAK to say it detected an error and the host re-sends. I think the issue is noise on the USB GND polluting the K16 GND. I say this because I scoped some pretty bad noise on the ALL the power rails including GND, and that goes away when it's connected to the RasPi along with the errors. So my thoughts right now are that a ferrite bead on each USB signal and GND will filter that noise. Also, according to the Full Speed spec the cable shield is supposed to be connected directly to the GND plane, but it's unclear if that's part of the problem or the bead from signal GND will clear that up or if the shield needs a bead or should just be disconnected. is there pins to short to turn the klondike K16 on? How will these be switched on after plugging into a psu?
No. If the power is on at the connector then it's on for the board. IF you wanted to switch power for each board individually you would need to put switches in the power line to the board. Which is not much different than if I had pins to short as you'd need a switch for that, except it could be momentary rather than on/off. The firmware allows for disabling the clock, thus disabling hashing, which cuts power use to very low, which would be like an idle mode. ok cool, so what is the recommended way to power on the psu? Are people mainly going to have these plugged into pc's? edit: ok I got a few psu's laying around but I am unsure how to power on the power supplies without a host pc, what I'd like to do is have a nexus 7 or netbook run cgminer, how do I switch the power supply on? is there a switch I can buy for this?
|
|
|
|
godofal
Full Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif) ![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 160
Merit: 100
TACNAYN - destroyer of worlds
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 08:39:29 PM |
|
ok cool, so what is the recommended way to power on the psu? Are people mainly going to have these plugged into pc's?
edit: ok I got a few psu's laying around but I am unsure how to power on the power supplies without a host pc, what I'd like to do is have a nexus 7 or netbook run cgminer, how do I switch the power supply on? is there a switch I can buy for this?
you can simply short the green and any black wire on a PSU to turn it on a steel paperclip or bare piece of wire will do the trick like this: ![](https://ip.bitcointalk.org/?u=http%3A%2F%2Fmarcomiltenburg.com%2Fwp-content%2Fuploads%2F2011%2F09%2FATX-Power-Supply-Connector.jpg&t=665&c=Tjd-DHcyQ-uUsQ)
|
|
|
|
pixl8tr
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
July 14, 2013, 09:56:19 PM |
|
ok cool, so what is the recommended way to power on the psu? Are people mainly going to have these plugged into pc's?
edit: ok I got a few psu's laying around but I am unsure how to power on the power supplies without a host pc, what I'd like to do is have a nexus 7 or netbook run cgminer, how do I switch the power supply on? is there a switch I can buy for this?
I picked-up one of these. It is a bit easier on your Power Supply by placing a small load on the 3.3 volt rail to stabilize it. http://www.ebay.com/itm/251029201991?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649
|
who | grep -i blonde | date; cd ~; unzip; touch; finger; bjobs; uptime; strip;. grab; mount; yes; umount; sleep; brun; Donations: 18ByQvDUmaMKkQbYvUWmnPSu9BWeNxVMoc
|
|
|
|