Servo

this two will make you understand the difference between them.

im sorry im just a beginner, but i really need to connect my two servo motor, 2 lights and a camera is this possible using cayenne? thank you so much and im using a raspberry pi 3b

yes, it is possible with cayenne. But you need PCA9685 extension board to connect it to pi.

thank you helps a lot

2 Likes

Im sorry but may i ask how can i put a camera on my cayenne im using the raspberry pi camera thank you

do you want to show the raspberry pi camera video on the cayenne dashborad (which is not possible) or do you want to capture an image when a button is pressed on the cayenne dashboard have a look at this Take picture when motion with Pi 3 and Agent 2.0 CayenneMQTTClient() and notify by email - how to trigger a script on Pi 3

I need a button on my cayenne dashboard that can access the camera on my raspberry pi. Is it even possible?

isnt, this what you want?

I think it only shows the capture image if motion is detected
But i need a live video status of my camera. Is it possible?

are you familiar with python? you will have to modify the code to take photo.

Can you give me some configuration thank you so much

this library to connect to cayenne GitHub - myDevicesIoT/Cayenne-MQTT-Python: Python Library for Cayenne MQTT API and this for raspberry pi camera picamera — Picamera 1.13 Documentation. you need to combine both the code.

Thank you for the help i will follow everything you told me.

Hi how am i going to add the cayenne example code to the simpletest.py

in the cayenne code, first read the position of the slider and set the servo position depending on the value.

def on_message(message):
    print("message received: " + str(message))
    if (message.channel == 4) and (message.value == "0"):
            pwm.set_pwm(0, 0, servo_min)
    if (message.channel == 4) and (message.value == "1"):
            pwm.set_pwm(0, 0, servo_max)

Which cayenne code? The client.py?

Can you tell which folder? From Cayenne-mqtt-Python.
I have 3 folders the cayenne, examples and test on which folder do i specifically need to code

inside example there will be file named Example-03-CayenneClient.py

It shows timestamp only
If (time.time() > timestamp + 10):
client.celsiusWrite(1, i)
client.luxWrite(2, i*10)
client.hectoPascalWrite(3, i+800)
timestamp = time.time()
i = i+1

Should i erase this

And what should i code

Do you see this lines? change it to the above.