Jump to content
I2Cdevlib Forums

I need help writing my code


Recommended Posts

Hello, I am currently trying to make a mod to my motorcycle with the MPU 6050 that allows me to turn on one of the two side lights that I have installed depending on the inclination of the motorcycle, so if I lean to the right 10 degrees to take a curve, a relay turn on the right light to illuminate the curve. I would like it to be using the DPM6 to obtain accurate measurements, the idea is that everything is controlled with a button that has another function, that is, that button if you press it once turns on the garage door opener, that is already done , now I need to make that if you hold it down for 3 seconds, the side lights are activated, and that they go on depending on the inclination as I have already explained before.
I know what I ask for is very complicated, but I am new to arduino and I have no idea how to make this work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...