PMS7003 with Arduino MEGA2560 - Public Lab
文章推薦指數: 80 %
To measure particulate matter i got the PMS7003 Sensor. Does anyone know a proper wiring diagram and a code that works with arduino?
Hello,afirsttimerhere.ThanksinAdvanceforanyonekindenoughtooffermeadvice.
ihaveb...
PublicLabisanopencommunitywhichcollaborativelydevelopsaccessible,opensource,Do-It-Yourselftechnologiesforinvestigatinglocalenvironmentalhealthandjusticeissues.
PublicLab
Topics
Topics
Agriculture
Airquality
Climatechange
Disasterresponse
Education
Indoorairquality
Landuse
Lawandpolicy
Lead
Microplastics
Noise
Odor
Oilandgas
Organizing
Soil
Stormwater
Transportation
Waste
Waterquality
Wetlands
close|
Alltopics»
Community
GetStarted»
People
Places
Projects
Events
Questions
Chat
Tools
Methods
Kits
KitsInitiative
Store
Software
MapKnitter
Infragram
SpectralWorkbench
CodeCommunity
Aboutus
AboutPublicLab
Blog
Newsletter
Careers
Contact
Store
Donate
Signup
Login
Store
Donate
Signup
×
Signupwith
Username
Placeholder
Email
Placeholder
Chooseimageordragonehere
Createapassword
Placeholder
PasswordConfirmation
Placeholder
Bio
IfyoucannotusetheReCaptchatoverifyyouarenotabot,usethisalternativeverification.
Bysigningup,youagreetotheCodeofConduct,whichappliestoallonlineandin-personspacesmanagedbythePublicLabcommunityandnon-profit.YoualsoagreetoourPrivacyPolicy.
Asanopensourcecommunity,webelieveinopenlicensingofcontentsothatothermembersofthecommunitycanleverageyourworklegally--withattribution,ofcourse.ByjoiningthePublicLabsite,youagreetoreleasethecontentyouposthereunderaCreativeCommonsAttributionSharealikelicense,andthehardwaredesignsyoupostundertheCERNOpenHardwareLicense1.1(fulltext).Thishastheaddedbenefitthatothersmustsharetheirimprovementsinturnwithyou.
Signup
or
Login
Login
or
signuptojointhePublicLabcommunity
Username
Password
Login
Rememberme
Forgotyourpassword?Resetithere
Question:PMS7003withArduinoMEGA2560
vinushi1995isaskingaquestionaboutair-quality:
Followthistopic
byvinushi1995|
July21,201904:12|
#20210
Hello,afirsttimerhere.ThanksinAdvanceforanyonekindenoughtooffermeadvice.
ihavebeentryingtomakeanairqualitymonitorusingtheAircastingapp.TomeasureparticulatematterigotthePMS7003Sensor.Doesanyoneknowaproperwiringdiagramandacodethatworkswitharduino?I'vebeentryingsomecodesbuthavebeenencounteringproblemsinmostofthem.Thisisthelatestcodei'vebeenusinganditseemstobegivingvaluesin100swhichisveryhigh
includeSoftwareSerialmySerial(10,11);//ArudinoUnoportRX,TXvoidsetup(){//fordebugingSerial.begin(115200);//UsesoftwareserialmySerial.begin(9600);}voidloop(){//putyourmaincodehere,torunrepeatedly:staticintCheckFirst=0;staticintpm_add[3][5]={0,};staticintpm_old[3]={0,};intchksum=0,res=0;;unsignedcharpms[32]={0,};if(mySerial.available()>=32){for(intj=0;j<32;j++){pms[j]=mySerial.read();if(j<30)chksum+=pms[j];}if(pms[30]!=(unsignedchar)(chksum>>8)||pms[31]!=(unsignedchar)(chksum)){}if(pms[0]!=0x42||pms[1]!=0x4d)Serial.print("Dustrawdatadebugging:");Serial.print("1.0ug/m3:");Serial.print(pms[10]);Serial.print(pms[11]);Serial.print("");Serial.print("2.5ug/m3:");Serial.print(pms[12]);Serial.print(pms[13]);Serial.print("");Serial.print("10ug/m3:");Serial.print(pms[14]);Serial.println(pms[15]);}delay(2000);}
Share
Tweet
3Comments
silentsairam
commented
over2yearsago
Goodtoseeyourproject.
1.InthecodetheTX,RXpinsmentionBoardassociatedasArduinoUNObutyouareusingMega.Kindlycheckthepinconnections.
RXpinofBoardastobeTXpinofPMsensorandsameforTXaswell.
Linkswhereyoucanfinddetailedinformation👍
https://publiclab.org/notes/cfastie/11-28-2018/nano-particle-monitoring
ThislinkisfromAdafruit.CheckfortheboardandPMsensorvariantandmodifyaccordingly.
https://learn.adafruit.com/pm25-air-quality-sensor?view=all
Hopethishelps.
Isthisaquestion?ClickheretopostittotheQuestionspage.
vinushi1995
commented
over2yearsago
@silentsairamThankyousomuchfortheadvice!Isurewilllookintoit.😃
drewc228
commented
almost2yearsago
[email protected]?IamhavingasimilarproblemwiththePMS7003.Iamusingsimilarcodetoyours.ItdoesappeartoworkwiththePMS5003whichissimilarbutabitlargerfootprint.ButwhenIusethe7003withthesamecodeIalsoamgettingvaluesthatare10x-20xlargerthanexpected.Notsurewhatiscausingthisasitisclaimedthatthetwosensorsareelectricallyidenticalandusethesamedataprotocol.Appreciateanythoughts/suggestionsfromforummembers.
Isthisaquestion?ClickheretopostittotheQuestionspage.
Replytothiscomment...
Logintocomment
Logintocomment
Askrelatedquestion»
Addalocation
Learnaboutlocationprivacy
Thisispartof:
1014notes
createdbyvinushi1995over2yearsago
first-time-poster
160following
Follow
160notes
createdbyvinushi1995over2yearsago
arduino
27following
Follow
3more 
pms7003
pm2.5
include
90notes
createdbyvinushi1995over2yearsago
question:air-quality
延伸文章資訊
- 1PMS7003 with Arduino MEGA2560 - Public Lab
To measure particulate matter i got the PMS7003 Sensor. Does anyone know a proper wiring diagram ...
- 2攀藤G7 PMS7003/PMS7003T(+溫濕度) 粉塵濃度感測器含G7轉接板+ ...
含 G7轉接板+排線. 附上Arduino 專案範例碼,可以完整顯示美標,PM1.0 PM2.5 PM10 國標PM1.0 ...
- 3PMS Library - Arduino Reference
PMS Library. Sensors. Arduino library for Plantower PMS sensors. Supports PMS x003 sensors (1003,...
- 4【傑森創工】攀藤科技PMS7003 G7 PM2.5 偵測模組程式簡單 ...
【傑森創工】攀藤科技PMS7003 G7 PM2.5 偵測模組程式簡單不用焊接送轉接板送排線Arduino可|
- 5【傑森創工】攀藤科技PMS7003 G7 PM2.5 偵測模 ... - 蝦皮購物
本賣場為PMS7003,傑森實測可用!(Arduino開發板另購) PMS7003更薄、更輕巧,只有12mm! 免費贈送排線、轉接板,完全不用焊接! 程式非常簡單,建議用以下函式庫: ...