Skip to main content
19 events
when toggle format what by license comment
Apr 25, 2020 at 13:53 comment added UNKNOWN Thank you for pointing me in the right direction. :)
Apr 25, 2020 at 13:51 vote accept UNKNOWN
Apr 25, 2020 at 13:51
Apr 23, 2020 at 5:10 history edited tlfong01 CC BY-SA 4.0
edited title
Apr 23, 2020 at 5:07 comment added tlfong01 Hi @UNKNOWN, thank you for your explanation. I agree that Adafruit tutorials often mix up python2 and 3 and so sadly confuse newbies. I also found that AdaFruit this couple of years use Circuit Python in their tutorials, and Circuit Python does not run smoothly in Rpi.
Apr 13, 2020 at 20:47 history edited UNKNOWN CC BY-SA 4.0
added 71 characters in body
Apr 13, 2020 at 20:43 comment added UNKNOWN The adafruit software gets confused between python 2.7 and python 3. I can't seem to get it to ever put the reading in a varible
Apr 13, 2020 at 20:40 history edited UNKNOWN CC BY-SA 4.0
added 11 characters in body
Apr 11, 2020 at 14:38 comment added tlfong01 Last question before I go: Why can't you use Adafruit software?
Apr 11, 2020 at 14:36 comment added tlfong01 In case you wish to know how a MCP3008 code looks like, here is one: (1) "MCP3208 Programming Penzu Log": penzu.com/public/79948cde. In case you want to know if I have any code for MCP3008, the answer is "No", because I don't spoon feed codes for lazy to learn guys. I gave hints and ask them to code themselves, this way they learn and understand better. Ah bed time! I call it a day, see you later.
Apr 11, 2020 at 14:36 answer added user115418 timeline score: 2
Apr 11, 2020 at 14:25 comment added tlfong01 You might like to read a similar How-to-code-MCP3008 question: (1) How can Rpi python control MCP3008 ADC? raspberrypi.stackexchange.com/questions/106728/…. But you won't find any answer there, because the answer is hddden in the CHAT: (2) "CHAT about MCP3008": chat.stackexchange.com/rooms/102745/….
Apr 11, 2020 at 14:13 comment added tlfong01 Now another question: (2) Usually SPI ADCs have "registers", and you use SPI commands to read and write the registers, and job is done. Now do you have any experience in using SPI to read and write a register? If not, then you need to read a SPI tutorial for newbies and do some coding to get to know the stuff. If you understand SPI well, then you might find many MCP3008 tutorials "clear".
Apr 11, 2020 at 13:57 comment added tlfong01 Of course there are too many things in the datasheet not "clear". But there are a couple of things you need to make very "clear", otherwise you can't code. Let us start with the datasheet, and skim Sections 3, 4, 5.: (1) MCP3004/3008 2.7V 4-Channel/8-Channel 10-Bit A/D Converters with SPI Serial Interface - MicroChip ww1.microchip.com/downloads/en/devicedoc/21295c.pdf. / to continue, ...
Apr 11, 2020 at 13:48 comment added tlfong01 Hi @UNKNOWN, Welcome and nice to meet you. Ah, let me see. So you have MCP3008 wired, and spidev installed, but you don't know how to code. Let me see if I can help. First, a couple of questions: (1) Have you read the datasheet and found things not clear? If yes, I can try to explain the things your are not clear, before trying to give "clear" answer.
Apr 11, 2020 at 13:30 review Close votes
Apr 28, 2020 at 3:05
Apr 11, 2020 at 13:17 comment added UNKNOWN I've tried that, but I can't find a clear answer.
Apr 11, 2020 at 13:15 comment added joan There must be hundreds if not thousands of on-line tutorials. Follow one and if you have a problem tell us what you did and what did and did not work.
Apr 11, 2020 at 13:15 review First posts
Apr 11, 2020 at 19:15
Apr 11, 2020 at 13:11 history asked UNKNOWN CC BY-SA 4.0