Thank you felmue for your assistance.
I have managed to get this working and the light readings are now passing through MQTT to my HA.
I added the "dump (reading from the dlight unit) to json block" and all is working now.

Thank you felmue for your assistance.
I have managed to get this working and the light readings are now passing through MQTT to my HA.
I added the "dump (reading from the dlight unit) to json block" and all is working now.

Well this has been one of those projects where I have spent hours and got nowhere.
Can anyone tell me why this UIFlow2 program is not working. By not working I mean I am getting no messages (light readings) published to my Home Assistant EMQT server.

I can't find it and a previous post suggests there is a Time Block under Software buy I cannot find it.
Thanks ajb2k3,
I did manage to get my Stamp Pico working with both a PIR sensor and relay unit.
The problem was my fault. In soldering on the grove connector to the Stamp Pico, I soldered it on the wrong side of the board so when I connected a grove cable - ground was connected to GPIO 33, 5v was connected to GPIO 32, GPIO 32 was connected to 5v and GPIO 33 was connected to ground. Fortunately I didn't cook my board.

This is the simple program

This is the terminal response.
Does this indicate a problem with the Relay Unit programming in UIFlow?
Stupid question! I have been trying to get my relay units working on UIFLow 2 with an AtomS3Lite and on UIFLow 1 with a Stamp Pico. I've resorted to very basic programming to turn the relay unit on and off once every 5 seconds and they are not working. I have used these M5stack relay units only last week and they were both working fine.
I'm just wondering if something is broken in both versions of UIFLow??
Yes, I have tried the examples that Zorgroz refers to using my M5 Core2 and the M5 Unit Synth.
No sounds are heard. Only the green title on the screen "Unit Synth Drum".
Is there any documentation on how to use the M5Unit Synth with M5Flow?
Thanks
@felmue said in Stamp Pico and connecting more than one unit:
PIR unit only needs one input GPIO and the relay unit only needs one output GPIO.
Thanks felmue I did get this working.
I am creating a project using a Stamp Pico with a PIR sensor connected to the grove port. I want to connect a single relay unit to the Pico also. As there are no other grove ports I specified ‘custom’ for the port for the relay unit. I chose what came up initially, that was pins 21 and 22. My question is do I need to define the GPIO pins in UI flow (v1.13.2) in Python or can I stay using Blockley and they will be automatically defined?
Am I indeed using suitable pins for connecting the relay unit to the Pico?
Thanks for any/all help offered.
Thanks robski, yes indeed this was my problem. I hadn't updated my Atom S3 Lite with the latest firmware via M5Burner.
When I updated it to V2.0.1, the same as the latest UIFlow 2 version, it worked perfectly.
Thanks for your help.
I am using UIFlow version 2.0.1 and when I try to load a new project to my AtomS3 lite I get the message "Please upgrade firmware version V2.0.1 and above before synchronizing cloud project resources."
But I'm already using V2.0.1 ??
@mchott
I too am finding the same difficulties. Could someone please provide some advice.
@kombistack Well I don't know how I did it but I managed to get my AtomS3 Lite to connect to the cloud using the USB driver

and then using the Web Burner in UIFlow 2 to first erase the device and then reinstall the program.
@ajb2k3 AM I right in assuming you are asking if I have the correct USB driver installed on my laptop as opposed to installing any usb driver to my Atom S3 lite?
I already had installed the CP210xVCP_Windows driver on my laptop. I'm not even sure if this is the one I should be using for the Atom S3 lite. (I'm finding the documentation on the M5stack web site somewhat lacking...)
In any case when I plug in the Atom S3 lite via usb cable to my laptop, the driver details are

Could you please guide me any further?
Thank you
Hi ajb2k3, no I haven't installed the USB driver. I think I must have erased it at one point by mistake. Where can I locate the USB driver?
Well several hours later I'm so frustrated with my Atom S3 lite that I have to ask for help.
I have downloaded the UIFlow2 program via Burner successfully and binded my device to my account but now in UIFlow2 my device is showing orange in the bottom bar and I cannot connect to it

Also the green button light is no longer on.
I've no idea what I have done wrong.
Any help to get reconnected to it via the cloud connect would be appreciated.
I just tried to record a simple .wav file via the built in microphone on my core2 with the M5Go Bottom2 using the blocky 'record to file' block. I am using UI flow 1.12.2 on my core2 and yes it does record and I can play the .wav file back but even at max volume of 6 the sound is very faint.
Yes Remco I have found the same issue with the microphone on the Core 2.
It does create an audio file to my SD card but it is 0 bites.
And yes this simple Blocky record function makes the Core 2 crash and restart.