![]() |
Forum Index : Microcontroller and PC projects : SDI-12 Sensor Comms
Author | Message | ||||
jewmac Newbie ![]() Joined: 25/07/2019 Location: AustraliaPosts: 1 |
Hi Forum, Just wanting to know if any members have had successful comms with a SDI-12 sensor using mmbasic. I am after some code examples if you are willing to share. I have been told that it would need to be a bit bang routine and mmbasic is not capable of doing this and a third party device is required. However I am sure there a some clever people amongst us who like to prove others wrong and have a little snippet of code to do so. If you can help I would be very appreciative |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
If it's 1200 baud but can't be done using a uart or the like then that's so slow that I expect mmbasic can cope. (I'm ignoring any hardware issues if there are any, such as voltages.) John |
||||
CaptainBoing![]() Guru ![]() Joined: 07/09/2016 Location: United KingdomPosts: 2170 |
Hey jewmac, welcome to the forum. There was some discussion a couple of years back for controlling some radiator valves(?) for a smart home using a proprietary protocol. Where as the protocol was decoded, the member had the same problem... I seem to remember that a fellow shedder wrote a CSUB to provide an arbitrary stream of bits, i.e. any protocol could be simulated. This may give you some ideas? https://www.thebackshed.com/forum/forum_posts.asp?TID=9353 |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
This was discussed a couple of years ago https://www.thebackshed.com/forum/ViewTopic.php?TID=9608&P=1#105532 Getting the 7 bits plus parity is easy enough. You need to think about the serial interface. Jim VK7JH MMedit |
||||
OA47 Guru ![]() Joined: 11/04/2012 Location: AustraliaPosts: 986 |
Thanks Jim for adding that link. I have had some micromites conversing with SDI-12 probes for a couple of years without issues. Has been difficult to search and get the appropriate discussions as the site has been under repair. Here is more of the discussion and some example code: http://www.thebackshed.com/Forum/printer_friendly_posts.asp?TID=9608 OA47 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |