Bananian

1wire parasite - pullup missing?

6 544
itsmee  
Edited by itsmee at Jan 04, 2016 12:36

Hi,

seems I'm unable to get a parasite 1wire DS1820 up and running on banana pi. Hope somebody can push me the right direction.

- DS1820 wired with two cables & running on Rasp Pi
- script.fex adepted, /sys/bus/w1/devices/10- shows the device
- getting CRC but temp of t=85000 permanantly

I'm suspecting that its related to the pullup that i had to configure in rasp pi, but can't get it going. It seems its not the w1-gpio / w1-therm kernel modules that raspberian uses.
I've added the port22: line assuming that the '1' means pullup. Didn't change the behavior.

Config A)
  1. bin2fex /tmp/mmcblk01p1/script.bin /tmp/script.fex
  2. echo "[w1_para]" >> /tmp/script.fex
  3. echo "gpio = 22" >> /tmp/script.fex
  4. echo "port:22<0><1><default><default>" >> /tmp/script.fex
  5. fex2bin /tmp/script.fex /tmp/mmcblk01p1/script.bin
Copy the Code



Config B)
  1. cat /tmp/script.fex
  2. [w1_para]
  3. gpio = 22
  4. gpio_used = 1
  5. gpio_pin_1 = port:PB20<1><default><default><default>
  6. gpio_pin_2 = port:PB21<1><default><default><default>
  7. gpio_pin_3 = port:PB20<1><default><default><default>
  8. gpio_pin_4 = port:PI03<1><default><default><default>
  9. gpio_pin_5 = port:PB22<1><default><default><default>
  10. gpio_pin_6 = port:PB23<1><default><default><default>
  11. gpio_pin_7 = port:PI14<1><default><default><default>
  12. gpio_pin_8 = port:PI10<1><default><default><default>
  13. gpio_pin_9 = port:PI13<1><default><default><default>
  14. gpio_pin_10 = port:PI12<1><default><default><default>
  15. gpio_pin_11 = port:PI11<1><default><default><default>
  16. gpio_pin_12 = port:PH05<1><default><default><default>
  17. gpio_pin_13 = port:PH03<1><default><default><default>
  18. gpio_pin_14 = port:PH00<1><default><default><default>
  19. gpio_pin_15 = port:PH01<1><default><default><default>
  20. gpio_pin_16 = port:PH01<1><default><default><default>
  21. gpio_pin_17 = port:PI19<1><default><default><default>
  22. gpio_pin_18 = port:PH02<1><default><default><default>
  23. gpio_pin_19 = port:PH02<1><default><default><default>
  24. gpio_pin_20 = port:PI20<1><default><default><default>
  25. gpio_pin_21 = port:PI21<1><default><default><default>
  26. gpio_pin_22 = port:PI17<0><1><default><default>
  27. gpio_pin_23 = port:PH20<1><default><default><default>
  28. gpio_pin_24 = port:PH21<1><default><default><default>
  29. gpio_pin_25 = port:PI16<1><default><default><default>
  30. gpio_pin_26 = port:PI16<1><default><default><default>
  31. gpio_pin_27 = port:PI18<1><default><default><default>
  32. gpio_pin_28 = port:PH05<1><default><default><default>
  33. gpio_pin_29 = port:PI21<1><default><default><default>
Copy the Code


Both show very similar results:
  1. # gpio readall
  2. +----------+-Rev3-+------+--------+------+-------+
  3. | wiringPi | GPIO | Phys | Name   | Mode | Value |
  4. +----------+------+------+--------+------+-------+
  5. |      0   |  17  |  11  | GPIO 0 | ALT4 | Low   |
  6. |      1   |  18  |  12  | GPIO 1 | IN   | Low   |
  7. |      2   |  27  |  13  | GPIO 2 | ALT4 | Low   |
  8. |      3   |  22  |  15  | GPIO 3 | IN   | High  |
  9. |      4   |  23  |  16  | GPIO 4 | IN   | Low   |
  10. |      5   |  24  |  18  | GPIO 5 | IN   | Low   |
  11. |      6   |  25  |  22  | GPIO 6 | ALT4 | Low   |
  12. |      7   |   4  |   7  | GPIO 7 | IN   | Low   |
  13. |      8   |   2  |   3  | SDA    | ALT5 | Low   |
  14. |      9   |   3  |   5  | SCL    | ALT5 | Low   |
  15. |     10   |   8  |  24  | CE0    | IN   | Low   |
  16. |     11   |   7  |  26  | CE1    | IN   | Low   |
  17. |     12   |  10  |  19  | MOSI   | IN   | Low   |
  18. |     13   |   9  |  21  | MISO   | IN   | Low   |
  19. |     14   |  11  |  23  | SCLK   | IN   | Low   |
  20. |     15   |  14  |   8  | TxD    | ALT0 | Low   |
  21. |     16   |  15  |  10  | RxD    | ALT0 | Low   |
  22. |     17   |  28  |   3  | GPIO 8 | IN   | Low   |
  23. |     18   |  29  |   4  | GPIO 9 | ALT4 | Low   |
  24. |     19   |  30  |   5  | GPIO10 | OUT  | High  |
  25. |     20   |  31  |   6  | GPIO11 | ALT4 | Low   |
  26. +----------+------+------+--------+------+-------+
Copy the Code
  1. cat /sys/bus/w1/devices/10-0008030b40a9/w1_slave
  2. aa 00 4b 46 ff ff 0c 10 87 : crc=87 YES
  3. aa 00 4b 46 ff ff 0c 10 87 t=85000
Copy the Code

This is the main instruction I followed - followed by the two major raspberry settings.

http://www.kompf.de/weather/pionewiremini.html
  1. dtoverlay=w1-gpio,gpiopin=4,pullup=on
  2. sudo modprobe w1-gpio pullup=1
  3. sudo modprobe w1-therm
Copy the Code


Thanks for any advice!

ItsMee

What resistor value are you using for the pullup on the DS's data pin?

If using a higher value,try with 1k.

itsmee  
sashijoseph replied at Jan 05, 2016 12:18
What resistor value are you using for the pullup on the DS's data pin?

If using a higher value,try  ...

Hi,

I'm using 4,7k as recommend for Raspberry Pi in multiple posts - and as working with Raspberry pi. Wouldn't mind testing 1k, but would need to buy that.
Any specific reason you recommend 1k? You have parasite running on Banana pi? Can you provide details on your SW config?

ItsMee

The DS requires around 1ma during it's measurement period and thus requires a strong pullup atleast during this period.
4.7k may or may not work in all cases of parasite powering.
With the DS in standard mode 4.7k will always work.

You could first try the standard mode and see if it's working with the BPi.

Once that's confirmed,then try with the parasite mode with a lower value resistor.
If you have a couple more of 4.7k,you could tie all three in parallel to arrive at 1.5k

Note: The author has been banned or deleted.

wty123  
nfl bills jerseys, jordans, mbt shoes, indiana pacers jerseys, ralph lauren outlet, wholesale handbags, burberry handbags, ralph lauren factory store, versace clothes, nfl steelers jerseys, doudoune north face, air yeezy, michael kors outlet online, tommy hilfiger outlet stores, juicy couture handbags, nike shoes, louboutin, michael kors outlet, nike store, beats by dr dre, michael kors outlet online sale, nike outlet, nfl giants jerseys, adidas shoes, michael kors handbags, eyeglasses frames, burberry outlet online, nike factory, michael kors bags, oakley sunglasses outlet, jordan retro, burberry, skechers shoes outlet, veneta, uhren shop, nike roshe run, adidas online shop, new balance shoes, coach outlet online, puma online shop, polo ralph lauren, nike roshe run, michael kors, mcm handbags, michael kors outlet, burberry outlet online, swarovski crystal, swarovski, nfl lions jerseys, nfl broncos jerseys, nfl chargers jerseys, woolrich clearance, easton bats, ray ban wayfarer, nfl ravens jerseys, mlb jerseys, oakley sunglasses, ray ban, asics gel, nike shoes, cheap oakley, phoenix suns jerseys, boutique clothing, nuggets jersey, prada handbags, michael kors handbags, burberry outlet, barbour jackets outlet, chrome hearts clothings, huarache, longchamp, timberland outlet, beats by dre headphones, montre femme, vans, coach factory outlet, louboutin shoes, oakley sunglasses, nike, jimmy choo outlet, purses and handbags, long champ, coach outlet store, swarovski canada, toronto raptors jerseys, michaelkors.com, hermes tracksuits, air max 90, juicy couture clothings, sacramento kings jerseys, nike air max, converse sneakers, nfl azcardinals jerseys, burberry outlet online, hornets jersey, nfl falcons jerseys, timberland shoes, hogan, coach factory outlet, rolex watches, pumas, ralph lauren polo, pandora charms, swarovski crystal, ralph lauren outlet online, new york knicks jersey, air max thea, ralph lauren, new balance, adidas, air force, versace, stone island jackets, celine outlet, michael kors, nike, nike factory outlet, reebok, giuseppe zanotti sneakers, dsquared2 sale, air max 2007, longchamp, polo ralph lauren outlet, air max, wholesale handbags, fidget spinner, nfl dolphins jerseys, instyler, birkenstock, ferragamo, nike free, mizuno, burberry outlet, fred perry, ferragamo shoes, nfl saints jerseys, givenchy, birkenstock taschen deutschland, nfl colts jerseys, fred perry polos, adidas, salomon, burberry handbags, longchamp outlet, the north face outlet, adidas clothings, oakley holbrook,

coach outlet online
uggs
ray bans
michael kors uk
canada goose jackets
michael kors outlet online
canada goose jackets
ralph lauren sale
canada goose coats
louis vuitton factory outlet
uggs outlet
burberry outlet online
coach factory outlet online
moncler
yeezy boost
yeezy shoes
moncler coats
louis vuitton outlet store
moncler jackets
fred perry shirts
ugg boots
michael kors outlet canada
jerseys cheap
cheap air jordans
ugg outlet online
cheap ugg boots
michael kors outlet online
ugg boots
polo outlet online
pandora charms sale clearance
birkenstock shoes
longchamp bags
uggs on sale
michael kors outlet store
ray ban sunglasses discount
harden vol 1
adidas yeezy boost
birkenstock outlet
ugg boots
ugg boots
coach outlet store
moncler outlet online
salvatore ferragamo outlet
moncler uk
michael kors
red bottoms
adidas outlet online
ugg boots
uggs outlet
uggs outlet
mbt
ferragamo shoes
ralph lauren outlet online
cheap air jordans
pandora charms outlet
polo ralph lauren outlet
cheap jordan shoes
ugg outlet
adidas outlet online
salvatore ferragamo shoes
coach outlet online
coach outlet store
ugg boots
columbia sportswear outlet
mlb jerseys cheap
supreme shirts
ugg outlet
ugg australia outlet
ugg outlet
canada goose jackets
coach outlet online
ugg outlet online
pandora charms
coach outlet online
coach factory outlet online
canada goose outlet online
canada goose jackets
north face jackets
louboutin outlet
mulberry
ugg canada
canada goose jackets
coach handbags outlet
uggs outlet
adidas nmd r1
michael kors outlet store
nike outlet
michael kors handbags
ugg outlet
uggs outlet
ugg boots
canada goose parka
coach outlet online
pandora uk
canada goose outlet
louboutin outlet
fitflop sandals
birkin handbags
the north face outlet
air jordan retro
air max
michael kors outlet clearance
michael kors outlet online
moncler jacket
ugg boots outlet
canada goose outlet
ugg canada
canada goose
uggs outlet
adidas nmd runner
michael kors outlet online
north face jackets
uggs sale
coach factory outlet online
canada goose sale
cheap air jordans
michael kors outlet store
air max shoes
171128yueqin

You have to log in before you can reply Login | Sign Up

Points Rules