Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Proteus Design Suite - Simulation & PCB Layout

Proteus Design Suite - Simulation & PCB Layout

Share this group

Quick Overview

Category
Uncategorized
Language
Total members
896
Total events
0
Total discussions
93
Total views
79K
Total albums
0

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Proteus iot builder for raspberryPi mcp3008 Problem

Status
Not open for further replies.

Poseider

Newbie
Newbie level 1
Joined
Aug 31, 2020
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
5
Hi everyone,

please I need some help wiring and configuration the mcp3008 ADC on Proteus IOT Builder with raspberryPI.
I connected :
the Pi CLK to the MCP CLK
the Pi MISO to the MCP DOUT
the Pi MOSI to the MCP DIN
and the Pi CS to the MCP CS/SHDN
but when I simulate this errors appear :

[VSMPY] File "C:\Users\Jawhar\AppData\Local\Temp\VSM Studio\be09b88a6d4042db9b27604dfc64139e\RPI3\Debug\main.py", line 28 [U1]
( line 28 pio.U2=Generic.MCP3008 (pio.CLK, pio.MISO, pio.MOSI, pio.$CS$) )
[VSMPY] pio.U2=Generic.MCP3008 (pio.CLK, pio.MISO, pio.MOSI, pio.$CS$) [U1]
[VSMPY] ^ [U1]
[VSMPY] SyntaxError: invalid syntax [U1]
[VSMPY] Python execution finished [U1]

Can someone help me running this and thanks in advance.
 

Carry for cents bazar

Member level 5
Member level 5
Joined
Aug 2, 2020
Messages
81
Helped
10
Reputation
20
Reaction score
16
Trophy points
18
Location
CZ
Activity points
417
MISO = Master In Slave Out
MOSI = Master Out Slave In

There seems to be something wrong with the model or your main.py file. You have made a mistake in the programming in Python.

Please post circuits and codes when you ask questions, it helps us a lot.
 

Status
Not open for further replies.
Top