maksiu1000
Posts: 1
Joined: Mon Oct 15, 2018 3:44 pm

help i dont know python.

Mon Oct 15, 2018 3:54 pm

i have raspberry pi b+ and mh-z19 sensor.
i follow this
https://www.circuits.dk/testing-mh-z19- ... or-module/
but that code wont work.
https://textuploader.com/dnmnt

User avatar
paddyg
Posts: 2555
Joined: Sat Jan 28, 2012 11:57 am
Location: UK

Re: help i dont know python.

Mon Oct 15, 2018 7:59 pm

Did you get an error message when you ran the program? If you did that will probably tell you what the problem was. If you didn't then you should add print() statements to try to figure out what's not working.

However if you really know no python then you will find it very difficult and I would suggest you follow one of the basic courses available.
also https://groups.google.com/forum/?hl=en-GB&fromgroups=#!forum/pi3d

pcmanbob
Posts: 9612
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: help i dont know python.

Mon Oct 15, 2018 8:03 pm

Hi.

So saying it does not work tells us nothing we can only help you if you help yourself by posting any error messages you get, or telling use what its not doing.

and please don't use external sites to post code just use the code tags and post it direct on the forum .

Add [code] at the top

code goes here

and [/code] at the bottom.


you can use the same method to post the error messages to, its also a good idea to post some pictures showing your setup especially the connections between the pi and the sensor so we can check it looks correct.
I normally up load the pictures to imgur.com ( you can create a free account ) and just post links to them here.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Return to “Python”