I am using Adafruit Motor Shield V2 and need to use sliders and switches on Mobile device to control 4 motors.
I need to set the variables for speed and direction of each.
I can make this work with hardwired switches and POTs
I need to create 4 sliders that set a variable from 0-255 to control speed of DC motor. 4 switches that control direction. 1 switch that controls train/trolly mode of the 4th train. and 1 switch that controls a delay if in trolley mode of 30 or 60 seconds.
My current arduino code works with everything described hardwired. I’m hoping to use this new add-on to mobilize this and recreate everything in a mobile interface. Not sure where to start.
The site linked to is just a framework not a completed site. I just threw this up so I could share the code via link instead of loading page down here.
I would setup a slider to use a virtual pin, V0 then if sent when released, it would send a variable V0 = value to the Arduino. From there I would use that variable as an active variable in the app. So if V0 = 255, I would use V0 to set the speed in my arduino code?
I’m using a motor shield and hardwired switches and sliders so I need detect if Blynk is connected and set a variable to control the logic. If I try to just set pin values, would it not conflict with my hardwired settings and revert to hardwired? or would you recommend putting in some sort of hardware switch to disconnect all hardwired switches and sliders when using blynk and just set and read values as if Blynk is a hardwired solution.
The slider object seems to only offer digital and Virtual, not analog unless I’m using the wrong widget.
I appreciate your advise. I really don’t want to make it harder than it is and go down a rabbit hole. Thanks again
You could use the labelled value display in the format /pin.#/°C to show temperature in Celsius to one decimal place but even the medium sized labelled value display is much bigger than a small value display.
You can create a string for a value to one decimal place and display this in a small value display but I don’t think you can graph this data so you would have to duplicate the string as an int / float to another virtual pin.
Would be nice to have a small labelled value display widget.