Closed keenanjohnson closed 2 years ago
@lwbantoto has been taking the lead on this, so assigning this task to him :)
Is this a Pi-Had or a PCB for the compute module?
@daveb377 it's a Pi-Hat! It will be a stackable PCB
SO a Pi Hat with a Sensiron sensor and a barometer? What else needs to be on there? Battery Interface/Solar power panel hookup?
Probably eventually a battery / solar hookup, but we'll need to figure out how to reduce the power consumption from the processor before that makes sense due to the lack of a sleep mode in the Raspberry Pi.
Yes the session sensor, barometer, and a GPS sensor are the intent for this hat.
I spent 20 minutes looking for a Pi hat with those sensors with no success. I'll take a look at a board design, it doesn't look too difficult, although I might have some Pi related questions. First I need to out a Kicad problem with another project, it might be a week or two.
Sounds good! Reach out with any questions!
@keenanjohnson - What sort of requirements are there on the CO2 sensor? The Sensirioin part is fairly large and expensive, and I'm wondering if there's a smaller part that would work? I'm trying to fit everything onto a Pi uHat for the Pi Zero, and it looks like it will all fit.
Hey @daveb377 we don't have any hard requirements on the Sensiroin sensor persay as we're still trying to identify the exact requirements from the data scientists. However, here are the loose requirement set:
If there is another part that fufils these requirements at a lower cost / size, I'm definitely open to it, but haven't found it yet.
It's great that you are helping to tackle this, but here's a few other key pieces of information for you that might make the Hat concept obsolete. 1 - We've switched in the BOM to the Raspberry Pi 4 CM4 module which includes a much higher gain antenna given I had some wifi connection issues with the small on PCB antennae on the Raspberry Pi Zero. So if we stick with the Hat format, we should probably size it for a normal raspberry pi. 2 - In another task, we've been working on a new enclosure concept to 3D print the full enclosure. Right now our concept has trended towards placing the sensors in a different enclosure section than the Pi, so I'm not if the hat concept really makes sense anymore? I'm open to people's opinions on this :). It would certainly make the whole package smaller if we did pursue it :)
@keenanjohnson Are we satisfied with the humidity and temperature measurements from the Sensirioin part? Perhaps we should add our own temp sensors (thermistor) and humidity sensors on-board.
They seem reasonably good and I've been told that Sensirion makes the best in class humidity sensors. I'm open to other options though if we feel there is a real advantage to another sensor combination.
For our application, redundant sensors is unnecessary right?
On Thu, Sep 23, 2021 at 9:33 PM Keenan Johnson @.***> wrote:
They seem reasonably good and I've been told that Sensirion makes the best in class humidity sensors. I'm open to other options though if we feel there is a real advantage to another sensor combination.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Ribbit-Network/ribbit-network-frog-sensor/issues/22#issuecomment-926278878, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXHIJFSUI36CJQJPYLVMGDUDPIPTANCNFSM5COSV2LQ .
If it's free or very low cost it doesn't hurt I think, but I definitely don't think it's necessary here. For temperature we already have two temperature readings: from the barometer and from the SCD30.
On Thu, Sep 23, 2021 at 7:53 PM Lance Bantoto @.***> wrote:
For our application, redundant sensors is unnecessary right?
On Thu, Sep 23, 2021 at 9:33 PM Keenan Johnson @.***> wrote:
They seem reasonably good and I've been told that Sensirion makes the best in class humidity sensors. I'm open to other options though if we feel there is a real advantage to another sensor combination.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/Ribbit-Network/ribbit-network-frog-sensor/issues/22#issuecomment-926278878 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABXHIJFSUI36CJQJPYLVMGDUDPIPTANCNFSM5COSV2LQ
.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Ribbit-Network/ribbit-network-frog-sensor/issues/22#issuecomment-926303068, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATQ3FW4OZAFWCY234H7CJTUDPR3BANCNFSM5COSV2LQ .
From a $$ point of view, the Sensirion is fairly expensive and large, $67.27/each at Digikey, so it's pricy compared to the Sensirion SCD41, which is $37.10/each at Mouser. I'll compare the specs for the two.
I'll also price out the various Raspberry Pi options. From an assembly point of view, fewer wires and interconnects to make is much easier to assemble and build, and causes fewer issues down the road, so it's for sure a better option if you plan to build more than 10 or 20 of these.
Yeah I definitely agree that a hat form factor would be nice for assembly :).
Looking forward to your comparison! I do still think the hat form factor makes sense :)
Pulling together a comparison spreadsheet in Google Sheets here : https://docs.google.com/spreadsheets/d/1TGryxRZgJ1XtoPHgSFU0XBkzrDwEvxxF2vDguaEpcZk/edit?usp=sharing
There's 4 raspberry pi's costed out, i need to work on the capabilities of each of them. I also threw in an ESP32 Arduino Feather. It's a WIP, but I've opened it up to comments. Costing is pretty important, generally a multiplier of 2.5 to 3 to go from the BOM (Bill of Materials) so shaving Dollars here makes the final system cheaper by a 3:1 ration.
Wow this is an awesome start @daveb377 and related to another issue: #31.
One other important dimension in your analysis to consider is the ease of purchasing. Right now the electronics shortage is making it really difficult to procure certain things. For example, I haven't been able to find Raspberry Pi 4's at any of the major suppliers at normal prices recently. I'm told by vendors that the shortage will probably continue well into mid 2022, so it doesn't seem like this issue will be mitigated in the short term.
No, I think every place I looked had had them out of stock. The other thing I was going to add is CO2 sensor options. I've poked at the Sensirion parts, but i'm not sure what else is out there
Have a few comments/questions:
I created this document a while ago to track CO2 sensor research: https://docs.google.com/spreadsheets/d/1RpaTCX8PqUjehLUbW_36fwdgL5wZA7mf5JP_UX7CvC8/edit#gid=0.
I've just added info for the SCD40 and SCD41. Similar to @keenanjohnson, I've done a bit of looking around for other options but there doesn't seem to be too much out there that is competitive with the price of the Sensiron sensors. @daveb377 (or Keenan), if you find other sensors and want to contribute to the spreadsheet, let me know and I can add you.
Regarding the SCD4x series sensors, they do not use NDIR, but rely instead on photoacoustics. From what I understand, it is at least similar to NDIR in that it performs a 'direct' measurement of the CO2 content of the air (this review article seems pretty interesting, the first few paragraphs hint at the similarity to NDIR). However, it does have a slightly lower accuracy (40 ppm for the SCD41 vs the 30 ppm of the SCD3x, although the variance in accuracy may be less due to the smaller total range).
@keenanjohnson, I just wanted to clarify why the new enclosure design has moved the sensors. Is it to increase the integrity of the CO2 measurements by moving it away from the heat source of the RPIs SoC?
@keenanjohnson, I believe you mentioned that you would like to keep the 'hat' form factor to that of the 'standard' RPI board. Wouldn't a form factor the size of the CM4 satisfy all of the same requirements? Above, you cited the WiFi connectivity as a reason to use the standard RPI form factor, but isn't the U.Fl connector on the CM4 itself? Am I misinterpreting something here?
That being said, maybe there are other reasons to stick with the larger 'standard' form factor for the hat? Would be curious to hear thoughts on this. The only other things I was thinking are perhaps increased supply chain flexibility and more standardization for people who wanted to use their own RPI boards.
@eren-rudy That's a nice summary. I copied that into the compute options spreadsheet, I hope you don't mind. I can remove it you want.
The CM4 has a unique connector that's not compatible with the other Pi's, which have a common connector. The CM4 is expensive, and focused for high volume industrial users, so I suspect it's harder to find. It would make for a smaller sensor I think but less each to source.
It sounds like adding a GPS receiver to the sensor would be helpful from a wiring point of view.
@eren-rudy yes we're considering moving the sensors for a few reasons:
These two reasons would seemingly lead us away from a raspberry pi hat format. However, I do see the benefits of standardizing on a form factor. I think what might be the best compromise is to stick with a standard connector like QWIIC which some of our sensors already use.
The mechanical design is still a prototype though, and it's not certain if we "need" to decouple the compute from the sensors. What do you all think?
@daveb377 No worries, its nice to have everything consolidated.
Yeah I think I agree that the larger hat form factor makes sense for standardization and sourcing flexibility.
@keenanjohnson Thanks for the clarification, that makes a lot of sense to me!
I don't really see too much strong reason for single-board consolidation, at least for now. Maybe someday, if there was high enough volume, it would be advantageous to have everything on one PCB to drive costs down (reduce wiring, connectors, and assembly complexity). For now, I think it makes sense to explore multiple avenues to see what works? I'm sure we could find ways to study the effects of those two reasons (thermal coupling and environmental protection of sensitive circuits), but perhaps that is a larger conversation that we can have elsewhere.
Hmm. A QWIC interface might be very interesting. Have to look into that. As far as the rational for a custom board, it would certainly make assembly easier, and cables are a continual problem area. Getting boards build in small quantity is surprisingly inexpensive now, Parts availability is probably more of an issue.
Yeah I would be curious if we can achieve a cost savings vs buying the individual boards for each sensor!
Added details on the Raspberry power and interfaces, here's an editable link https://docs.google.com/spreadsheets/d/1TGryxRZgJ1XtoPHgSFU0XBkzrDwEvxxF2vDguaEpcZk/edit?usp=sharing I think the HAT (40 pin connector) is possibly the most straightforward approach. I'm not sure how you'd make a board outline for both yet, but I'm sure it's pretty manageable. I suspect that a single board would be less expensive than buying multiple eval boards.
Not sure this is legible, but here's a first cut at a dedicated Pi Hat. I've got the two sensors plus a GPS receiver with an integrated antenna.
My next step is to see about adding a battery management/Solar cell controller, but I need to do a little research on this first.
Wow this is great @daveb377! Do you have parts list you've chosen for the above?
Here's a CSV in HTML, just to confuse things. I'm kind of surprised I can past something from Excel into here. Anyway, this uses the same environmental sensors as the original ribbit. I added a different GPS receiver, which has an embedded antenna, eliminating that pain point. I haven't scrubbbed for parts availability, but will look at JLCPCB to build them, but they may not have the sensors, so that would need to be hand soldered down.
JLCPCB sends fairly cheap fabricated PCB's from China, and they have a set of "house" parts, which also might be worth looking at. ` <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
Ref | Value | Footprint | Datasheet | Manufacturer | Vendor -- | -- | -- | -- | -- | -- C1 | 0.1 uF | Capacitor_SMD:C_0603_1608Metric | ~ | | C2 | 0.1 uF | Capacitor_SMD:C_0603_1608Metric | ~ | | C3 | 0.1 uF | Capacitor_SMD:C_0603_1608Metric | ~ | | D1 | LED_RGB | LED_SMD:LED_RGB_Cree-PLCC-6_6x5mm_P2.1mm | ~ | | J2 | RPi_GPIO | RPi_Hat:Pin_Header_Straight_2x20 | | R1 | 10k0 | Resistor_SMD:R_0603_1608Metric | ~ | | R2 | DNP | Resistor_SMD:R_0603_1608Metric | ~ | | R3 | 10k0 | Resistor_SMD:R_0603_1608Metric | ~ | | R4 | 330 | Resistor_SMD:R_0603_1608Metric | ~ | | R5 | 330 | Resistor_SMD:R_0603_1608Metric | ~ | | R6 | 330 | Resistor_SMD:R_0603_1608Metric | ~ | | R7 | 0 | Resistor_SMD:R_0603_1608Metric | ~ | | R8 | 0 | Resistor_SMD:R_0603_1608Metric | ~ | | U1 | DPS310 | Phase0:XDCR_DPS310 | | U2 | SCD30 | Phase0:MODULE_SCD30 | | U3 | L80-R | Phase0:XCVR_L80-R | https://www.quectel.com/UploadImage/Downlad/Quectel_L80-R_Hardware_Design_V1.2.pdf
A big way to drive the cost of the Frog down is to design a custom circuit board that contains some of the electronics, instead of buying multiple dev boards. We should explore this option :)