Peristaltic Doser - Doser set amount over 24hr period

Hey @james211!

Just wanted to pop in here to to comment that this sounds like an awesome product, and that I’m blown away by the time and help that @Ric, @ScruffR, @Moors7, and @peekay123 have contributed over the last couple of months.

I want to echo the sentiment that the forums are a really great place for getting tips, but isn’t necessarily intended as a place to do continued product development. @Ric has been very generous with his time and expertise, which is fantastic, but if you’re building a commercial product we highly recommend you also reach out to Particle.

We have a bunch of great resources specifically built to support product creators, including access to a network of paid contractors for developmental services (like you requested in your post at the beginning in the thread!).

4 Likes

I went ahead and changed the category of the thread to Product Creation to better fit the conversation occurring in the thread.

Sigh… I give up.

3 Likes

Hi Will,

Yes, they have been incredibly generous. I have ideas and never know how to implement them. I just want to be clear that this is not a project I intend to profit from, its a project to help out a community of coral reef enthusiasts. I do a lot of work to help support others as well. I don’t expect anything from anyone and honestly I’m surprised they haven’t given up yet (but I know they are incredibly frustrated by me), I’m guessing I’m going to need to find additional resources soon.

I appreciate you chiming in, and I’ll check out the resources for paid contractors. I’m happy to pay. I’d rather pay than frustrate others…that is not my intention.

Thank you.
Dustin

I’ll let it be @Ric, life’s too short for me to create frustrations in the lives of others why I’m the one lacking knowledge. I appreciate your help and patience…I mean that sincerely, Thank you.

Hey @james211–I want to thank you for your enthusiasm! I don’t believe that you have offended or frustrated anyone. I would be very glad if all of our community members were as ambitious as you…many of the individuals on the Particle team learned about electronics and firmware development with the help of open source communities like this one, so I sincerely hope you continue your process of learning!

I would love to see you continue to post updates on the progress of your project! Best of luck!

2 Likes

Besides serial monitor, is there a way to see activity logs of the spark? Say when a relay is triggered on/off?

@james211, you could use Particle.publish() events to see those in the dashboard or using CLI.

Ah good point, I forgot about the dashboard. When testing things for essentially days on end that might be easier. Plus particle dev serial monitor puts crazy wear on my processor.

Ok, got particle publish working.

I’ve checked out atomiot for data logging, but I’m not sure its what I want yet. What are some other data loggers that work well with Particle?

Have you tried this yet?
http://community.particle.io/search?q=data%20log

Yeah, I did actually, I found a few ideas, but I was more interested in the services that people have successfully connected. Right now I’m looking at initialstate.com.

So I was able to get the google docs working for data logging, its perfect for me needs. Right now I have two variables, relayON and relayOFF. I can get the variables to log to the spreadsheet individually, but not both onto one spreadsheet. My goals is for the spreadsheet to show the log of when the relay is turned on and off via the programming.

  1. Here is the script I’m putting into google for relayON.
function collectData() {
  var  sheet = SpreadsheetApp.getActiveSheet();

  var response = UrlFetchApp.fetch("https://api.particle.io/v1/devices/350024000947343432313031/relayON?access_token=2d94a80909ac813efb79b1803df15exxxxxxxxxx");

  try {
    var response = JSON.parse(response.getContentText()); // parse the JSON the Core API created
    var result = unescape(response.result); // you'll need to unescape before your parse as JSON
    var d = new Date(); // time stamps
    sheet.appendRow([d, "relayON", result]);
    } catch(e)
    {
      Logger.log("Unable to parse");
    }
  }
  1. Here is the script I’m using for relayOFF.
function collectData() {
  var  sheet = SpreadsheetApp.getActiveSheet();

  var response = UrlFetchApp.fetch("https://api.particle.io/v1/devices/350024000947343432313031/relayOFF?access_token=2d94a80909ac813efb79b1803df15exxxxxxxxxx");

  try {
    var response = JSON.parse(response.getContentText()); // parse the JSON the Core API created
    var result = unescape(response.result); // you'll need to unescape before your parse as JSON
    var d = new Date(); // time stamps
    sheet.appendRow([d, "relayOFF", result]);
    } catch(e)
    {
      Logger.log("Unable to parse");
    }
  }
1 Like

Now you have to poll the device for states, whereas you’d be able to use IFTTT very easily to push changes to the sheet, in one sheet. Give it a shot and see if that works for you?

Well I’ve made some progress on the hardware for this project, I put together a 6 channel mosfet shield. I’m sending out the board today to have someone run some tests on it for me since I don’t have the equipment to do it here. If anyone has any suggestions please let me know. The unit is powered by a single 12v source, which also supplies voltage to each output. This unit is designed to run one pump at a time, even though the highest quality pumps I’ve tested only draw 150mA.

I went with a Traco TSR 1-2450 DC/DC buck converter for the 12v -> 5v conversion, and for the mosfets I’m using IRLB8721PBF.

If anyone has any further suggestions please let me know. I’ve tested the unit with a pump, ran it for multiple hours and tested on/off with a set program and it worked well. The mosfet’s didn’t even get warm.

Does anyone have any suggestions for enclosures? I need to figure out sizing yet, but in the mean time I’m looking for suggestions. Clearly I’ve scoured the internet and have a few ideas up my sleeve, but I figure it never hurts to ask.

Here’s a photo (don’t mind the old spark core)

3 Likes

Regarding internet connections, I did a test today to see if programs run when internet connection is lost, and it does. However, once I replugged the router in, I noticed that the photon doesn’t reconnect on its own without clicking the rest button. Is there a work around for this?

You could go to your local Fablab and print your enclosure on a 3d printer :wink:

Yes, you can use all the fancy commands like WiFi.connect(), Particle.connect() whenever you find the device not connected either via !WiFi.ready() or !Particle.connected().
This has been discussed in this forum all over the place.

1 Like

got it…thanks @ScruffR - works perfect.

Does anyone know of any lightpipe connectors that work well with the photon board? Basically I’m looking for some ideas on how to see the connected status of the board outside of the enclosure. I found this thread but wasn’t sure if that is a good solution.