Forum Replies Created
-
AuthorPosts
-
akobariParticipantHi sakos,
By saying RPi2 If you mean Raspberry Pi 2, then you need Raspberry Pi Model A+ setup, PI zero SOC and GPIO is the same as Raspberry Pi Model A+, You can confirm this with Ray to be sure you have the correct setup.
Good Luck,
akobariParticipantHello Sakos,
Thanks, and no modification at all, smooth easy set up just like other raspberry pi. That’s the beauty of this little guy is being 100% compatible for Raspbian OS and all GPIO operation. All I needed to get a micro USB B adapter for the WiFi dongle. like this one:http://www.ebay.com/itm/391333526724?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
I know it’s very hard to get Pi Zero, I was lucky that just before Holiday season, our local MicroCenter carried a whole bunch of them, and they are all sold out again.
akobariParticipantHi Ray,
I am totally clear now, and thanks so much for your help. Great web site and very informative forum.
akobariParticipantHello Ingo,
Thanks for clarification, I did not pay attention to his OSPi power section design, and you are absolutely correct, it is a fix 5 volt LM2596, and that also explains my issue as well, output voltage being wrong as he also explained it to me in his previous email, my bad, and thank you so much for solving my issue.
akobariParticipantHello Ingo,
If all we need a 5 volt for RPI and other components, so why he used adjustable LM2956, I can see a benefit of adjustable in this DC/Dc supply:
http://www.amazon.com/LM2596-Converter-Module-Supply-1-23V-30V/dp/B008BHBEE0/ref=sr_1_1?ie=UTF8&qid=1443621986&sr=8-1&keywords=lm2596
which has the flexibility of output voltage, as far as fuse we could still have the same fuse on fixed 5 volt output!P.S. I read the TI data sheet more than once
akobariParticipantHi Ray,
Could you please explain why you choose a Zerner diode and resistor combination for adjustable LM2596, instead of a fixed 5 volt output LM2596, or even using 2 resistor as a voltage divider for output of adjustable LM2596, like it mentioned in TI data-sheet. I am still having problem with my circuit, seeing 1.8 volt only, I ordered anew part from Digikey to try. I appreciate any clue to solve my issue,
Thanks
akobariParticipantHi ray,
Thanks for reply, my first post was not totally accurate, because I did use your exact circuitry in OSPi circuit, like the attached file. So LM2596 is adjustable version, and I am using a combination of a Zener diode and 10 ohm resistor just like your design, but output volt on pin2 is 1.8V. so either LM2596 is bad, or some other component. I am ordering some more LM2596 from DIGIKEY to try them out. The first 10 that I bought was from Ebay very cheap, may be they were all bad. I would appreciate any troubleshooting guide.
Thanks
Attachments:
akobariParticipantsorry I posted in wrong forum, I meant Hardware section,
August 31, 2015 at 10:33 pm in reply to: Running OSPi Unified Firmware on RPi with no OSPi HW #40082
akobariParticipantI found the password “opendoor” and it worked like a champ! excellent, so I had to use your latest version, 2.1.6 update nothing else worked for me, Now I have to figure out why its not working on chrome, next I will try IE and Safari, to see if it works, Thanks again for your help,
Ali,
August 31, 2015 at 10:28 pm in reply to: Running OSPi Unified Firmware on RPi with no OSPi HW #40080
akobariParticipantHi Samer,
Its strange, because both Firefox and Chrome shows this source code:
<!DOCTYPE html>
<html>
<head>
<meta name=”viewport” content=”width=device-width,initial-scale=1.0,minimum-scale=1.0,user-scalable=no”>
</head>
<body>
<script>var ver=216,ipas=0;</script>
<script src=”https://ui.opensprinkler.com/js/home.js”></script>
</body>
</html>but Chrome can not find https://ui.opensprinkler.com/js/home.js java script, so may be a setting my chrome is doing it!
August 31, 2015 at 10:21 pm in reply to: Running OSPi Unified Firmware on RPi with no OSPi HW #40079
akobariParticipantHi Samer,
I just tried your 2.1.6 update version and now its much better, although I am still getting an empty /etc/init.d/OpenSprinkler.sh file, but when I try ./Opensprinkler in Firefox only (no luck on google chrome) I do get first page screen, which is fantastic progress, it shows password (I am not sure what it is) and “submit” under that, and your debug statement is coming like this:pi@raspberrypi:~$ cd OpenSprinkler-Firmware/
pi@raspberrypi:~/OpenSprinkler-Firmware$ ./OpenSprinkler
failed to open gpio direction for writing
failed to open gpio
failed to open gpio direction for writing
failed to open gpio
failed to open gpio direction for writing
failed to open gpio direction for writing
failed to open gpio
failed to open gpio
failed to open gpio
ailed to open gpio direction for writing
failed to open gpio direction for writing
failed to open gpio
/home/pi/OpenSprinkler-Firmware/
network established.
weather server ip:54:191:131:59
GET /weather0.py?loc=Boston,MA&key=&fwv=216&wto= HTTP/1.0
HOST: weather.opensprinkler.com
&scale=-1&rd=-1&tz=32&sunrise=367&sunset=1160&eip=409173545
failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value on pin failed to write value onAugust 31, 2015 at 10:04 pm in reply to: Running OSPi Unified Firmware on RPi with no OSPi HW #40077
akobariParticipantI have already ping 192.168.2.26
C:\Documents and Settings\Ali>ping 192.168.2.26
Pinging 192.168.2.26 with 32 bytes of data:
Reply from 192.168.2.26: bytes=32 time<1ms TTL=64
Reply from 192.168.2.26: bytes=32 time<1ms TTL=64pi@raspberrypi:~$ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:50:e4:06
inet addr:192.168.2.26 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:56 errors:0 dropped:0 overruns:0 frame:0
TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5316 (5.1 KiB) TX bytes:6244 (6.0 KiB)lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1104 (1.0 KiB) TX bytes:1104 (1.0 KiB)and I am using port 8080, if that’s correct,
http://192.168.2.26:8080/ nothing, i used both chrome and firefox
akobariParticipantwhen I type this as a process, nothing comes out from console! cursor just sit there!
pi@raspberrypi:~/OpenSprinklerGen2$ sudo ./OpenSprinkler
Do you have a debug flag option?
Thanks
akobariParticipantHi Samar,
Thanks again for your help, so I did ran the program in director itself, like this:
pi@raspberrypi:~$ cd OpenSprinklerGen2/
pi@raspberrypi:~/OpenSprinklerGen2$ ./OpenSprinkler &
[1] 2327
pi@raspberrypi:~/OpenSprinklerGen2$ ps
PID TTY TIME CMD
2311 ttyAMA0 00:00:01 bash
2327 ttyAMA0 00:00:00 OpenSprinkler
2428 ttyAMA0 00:00:00 ps
pi@raspberrypi:~/OpenSprinklerGen2$I can see the process is running but when I go to Chrome or Firefox and enter boradIP:8080, nothing happens! Can you tell me which one of these are correct code to get:
https://github.com/OpenSprinkler/OpenSprinkler-Firmware
or
https://github.com/OpenSprinkler/OpenSprinklerGen2.gitor does not matter!
akobariParticipantI am pretty sure that power source is OK, I also tried some other power source. I Noticed when it powers up during reboot, it’s trying to load I2C drivers, so I made the RPI image and then ran the “‘sudo raspi-config” script in order to Enable I2C in kernel, that help, because all RPi peripherals are Disable by default! I am not getting the frozen screen anymore , because of kernel I2C enabled. Now when I run the script sudo /etc/init.d/OpenSprinkler.sh restart, nothing happens, I looked at the file OpenSprinkler.sh in init.d directory and its empty very strange!!!
pi@raspberrypi:~$ ls -l /etc/init.d/OpenSprinkler.sh
-rwxr-xr-x 1 root root 0 Sep 1 01:38 /etc/init.d/OpenSprinkler.shAny idea?
Thanks
akobariParticipantHi Samer,
Thanks for reply, I did exactly what you suggested, and the outcome is the same after git clone, and asking if I want auto start of the code during the boot, and answering YES, it prints “Done!” and nothing else happens! total freeze! unless if I reboot the board, and gain after reboot it freezez , Here is the out put:
areraspberrypi:~$ git clone https://github.com/OpenSprinkler/OpenSprinkler-Firmw
Cloning into ‘OpenSprinkler-Firmware’…
remote: Counting objects: 976, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 976 (delta 5), reused 0 (delta 0), pack-reused 960
Receiving objects: 100% (976/976), 567.32 KiB | 718 KiB/s, done.
Resolving deltas: 100% (668/668), done.
pi@raspberrypi:~$ cd OpenSprinkler-Firmware/
pi@raspberrypi:~/OpenSprinkler-Firmware$ sudo ./build.sh ospi
Building OpenSprinkler…
Do you want to start OpenSprinkler on startup? y
Adding OpenSprinkler launch script…
update-rc.d: using dependency based boot sequencing
Done!
pi@raspberrypi:~/OpenSprinkler-Firmware$Any idea whats going on? I have tried many different SD card, and many different source of power for RPi, no change!!
Thanks
akobariParticipantHere is the log file for running ospi2.img file . After successful SD card format and writing this image, after reboot the program stuck in i2c driver load:
[ 7.618468] bcm2708_i2c_init_pinmode(1,2)
[ 7.805487] bcm2708_i2c_init_pinmode(1,3)
[ 7.980748] bcm2708_i2c 20804000.i2c: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[ 11.984147] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 12.078828] random: nonblocking pool is initialized
[ 12.448077] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 13.512393] i2c /dev entries driverThat’s why I was asking if it is waiting in I2c driver for ever to get some reply back from OpenSprinkler Hardware
akobariParticipantHi Sakos,
can you email me , about PCB board info, if you still have some? thanks [email protected] -
AuthorPosts