Forum Replies Created
-
AuthorPosts
-
RayKeymasterDo I have to disconnect expansion module and common during update process?
No you don’t need to disconnect expansion board.
RayKeymasterThe Wiki was added not so long ago. It’s not empty (in particular there are important information there about OSPi and OSBo), but I agree it’s under-used. It’s meant primarily for user-contributed content.
RayKeymasterThe main change is to switch to use the OpenSprinkler injection-molded enclosure, in the same way as OSPi v1.4.
RayKeymasterThe maximum is 127 days (i.e. 7 bits for the technically minded π
RayKeymasterThe work-around is to set the start time to whatever start time you’d like, and end time to be 11:59pm. Once the program starts, it will finish, even if it spans over the end time (in this case, it will span over midnight). The end time (in conjunction with the interval time) is only used to check how many times the program should be repeated during the day. Hope this makes sense.
RayKeymasterThere is an 8 pin set of holes on the main board lower right – just to
the right of the screw hole to mount the board onto the enclosure (and
to the right of a print that says “ext out”… Is that what I use? Do I
just solder that in?Yes, that’s the pin header that you should solder.
I would think the colored wires would go symmetrically leftmost pins (white) on main board to leftmost pins on the expansion board. That means flipping the connector on the expansion board and to do that I need to cut off the little bump…Is that correct? Can I do damage by trying or it just won’t work if the wiring is wrong?
No, you shouldn’t flip the connector: the bump should always face up, on both the controller side and the expansion board side. If you put the two connectors back to back, the wires should all be parallel. This type of cable is the easiest to source, so the expansion board pin header is designed to match the cable wiring. In short the expansion board pin header is ‘mirrored’ from the controller side pin header. Hope this makes sense.
RayKeymasterHi Samer, you may want to consider splitting the slider into two: one for minutes, one for seconds. That may be easier and more user friendly π
RayKeymasterYou should check the latest user manual:
http://rayshobby.net/docs/ospi14_manual.pdf
page 6, ‘Rain Sensor’ section. Rain sensor port has been added since OSPi 1.3. The video is outdated and I should re-make it at some point.
RayKeymasterAh, yes, you are right, the app doesn’t support setting water time down to seconds yet. Will talk to Samer and see if this is easy to add in the app.
RayKeymasterHi Scott,
Really sorry to hear that.The key thing to check is the voltage on the +5V pin; use a multimeter to check the voltage between +5V and Ground (if you have OSPi 1.4, there is a +5V pin at the upper left corner of the PCB). If it’s between 4.9V and 5.1V, it should be fine.
You may also want to check the SD card — if the SD card is corrupted the RPi won’t boot. Re-burn the SD card image and see if that helps.
RayKeymaster@rhldr: sounds like a problem with the RTC. To check whether it’s a problem with the NTC sync result or RTC, you can go to the Options page, turn off ‘NTP sync’, and set a time manually. Then see if the time drifts significantly (it will probably drift a few minutes over a few days, that is normal). If the time is significantly off, then it’s an RTC problem; if not, it’s a problem with incorrect NTP sync result.
@old_: check the time zone settings. Because OpenSprinkler doesn’t automatically detect day light saving time, you will need to manually change the time zone settings to account for DST.
RayKeymasterWhat’s the power supply you are using? Can you check the label and see the output voltage and current rating? Also, I assume you are running Dan’s interval program, is that right? If you are running Rich’s sprinklers_pi program, you may need to change a few parameters / settings first.
RayKeymasteris possible to set the max opening time for a channe in few time?
I don’t quite understand this sentence. Do you mean ‘in fewer time’, like sub-second?
Do you need it to trigger the relay automatically or you can do this manually? If it can be done manually, you can use the Run-Once program and just select a station and set it to be as few seconds as you need. If you need it to be done automatically, or you need sub-second timing, you will need to modify the program.
RayKeymasterYes, deleting a log file is done via:
http://x.x.x.x/dl?pw=xxxx&day=xxxx
where x.x.x.x is your opensprinkler’s ip address, pw is the password, day is the epoch time in days. To find the epoch time, google ‘epoch time’ and divide the long number by 86400 (number of seconds in a day). For exampe, for July 5, 2014 it is 16256.I know this is a rather awkward way to delete a log file manually, and a better way to delete the log file will be added soon which allows you to select a day in the UI and delete it that way.
RayKeymasterI think you’ve covered the key components — microprocessor, WiFi, solenoid drivers (i.e. relays). There are other comopnents that OpenSprinkler has, but you may or may not need them, such as the 24V AC to 5V DC switching regulator (you dont’ need it if you are ok with using two separate power supplies, one for the microprocessor and one for sprinkler valves), real-time clock, buttons, LCD, microSD slot.
RayKeymasterOpenSprinkler Beagle (OSBo) is being re-designed. It probably won’t be ready until a month later. Thanks.
RayKeymasterIt just occured to me that the problem may be due to defective terminal block: I had one user reporting to me recently that the green 2P terminal block is defective causing no voltage output. I suggest that you switch it with the Rain Sensor terminal block, which is the same type of terminal block. You can also measure the voltage at the solder joint of the COM terminal. In any case, if it’s a defective terminal block, please email [email protected] so we can send you replacements. Thanks.
RayKeymasterA new firmware 2.0.7 is released. Plesae check the details here: viewtopic.php?f=2&t=758. Thanks.
RayKeymasterNice blog, and thanks for sharing your mod. I will check it out later.
A quick update: I should take back what I said earlier about the Arduino SD library: I discovered just yesterday that the Arduino SD library works perfectly fine for OpenSprinkler, no RAM overuse etc. What happened previously was that I copied the tinyFAT library files to the OpenSprinkler folder, and when I was experimenting with Arduino SD, I didn’t remove those tinyFAT files. Well, I thought a file shouldn’t get compiled if I am not using it (or specifically, any class defined in the file). But this is not how Arduino IDE works — it compiles everything in the folder. As a result, the code consumes almost twice as much RAM as necessary. So I mistakenly concluded that the Arduino SD library is too loated.
Anyways, once I discovered this, I immediately switched to use Arduino SD, because it provides much better support, including large SD cards, sub-directories, and support for both FAT16/FAT32. Lately I’ve started using the SdFat library, which is what Arduino SD is based on but offers more flexiblity and leads to smaller code size. So that’s what gets wrapped into firmware 2.0.7, which I just announced in this thread:
viewtopic.php?f=2&t=758With this, the SD card limitations are gone: you can now use SD card of any capacity, formatted to either FAT16 or FAT32.
Regarding ATmega1284p: yup, it’s a drop-in replacement for ATmega644p, and that’s one of the main reasons I picked 644: it still has through-hole packaging (DIY friendly), and when needed you can easily upgrade to 1284 that doubles the flash memory space, and quadruples the RAM size! For now, I think 644 is still fine for a lot of the upcoming planned features. Beyond that, I will probably have to upgrade to 1284 π
RayKeymasterCool. Thanks for the update.
RayKeymasterI checked the OSPi 1.2 board, and here is the deal: the 24V pin you see is connected directly to one of the transformer pins, and it’s not even through the switch, so as soon as you plug in the transformer you should get 24V AC between the 24V pin and the GND pin. If not, you should definitely check if your multimeter is turned to AC voltage — if you measure DC voltage, you will get almost 0.
RayKeymasterThe hardware part of rain sensor is quite simple: one pin is tied to ground, the other pin is connected to the microcontroller’s digital pin 0 (assuming you have 1.3u). So other than checking the solder joints of the rain sensor terminal, and the microcontroller pins, I can’t think of anything else that would cause the issue.
RayKeymasterThe only major difference between 1.3 and 1.4 is the enclosure change. Some other minor differences include changing the type of the on-board relay, adding a few additional filter caps etc.
RayKeymasterThere are many different types of temperature sensors, simple ones like MCP9700, more accurate ones like TMP36, DS18B20, and also temperature + humidity sensors like DHT11 and DHT22. Adafruit.com is a good place to look for tutorials on how to use these sensors and sample code. If you are not familiar with programming, this is probably a good starting point π
RayKeymasterSorry about the confusion (and you are not the only one who got confused about this…). As stated in the online manual:
http://rayshobby.net/?page_id=730#programIf you only need to run the program once during a day, you can set a very large interval to ensure the program doesnβt run more than once.
That means the ‘Every’ field (i.e. the interval) should be a large number — in your case, putting 1 hour is large enough.
Technically the ‘Every’ field cannot be 0 because it will cause a divide by 0 error. The way the program works is it will start at the ‘start time’, repeat every interval time, and stop at the end time. As long as the interval time is large enough, the program will not run more than once, because the next time it’s supposed to run will be after the end time. Hope this makes sense.
-
AuthorPosts