Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. How can I implement this?

How can I implement this?

Scheduled Pinned Locked Moved Development
4 Posts 4 Posters 791 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maggie
    wrote on last edited by
    #1

    Hello,

    I am doing a project which consists of having 9 cubes that form a puzzle. When a cube is positioned correctly it emits a green light, otherwise a red light. How can it be possible for a specific cube to know whether or not is in the right position?
    p.s I'm a beginner in Arduino.

    Thank you in advance!

    wallyllamaW 1 Reply Last reply
    0
    • M maggie

      Hello,

      I am doing a project which consists of having 9 cubes that form a puzzle. When a cube is positioned correctly it emits a green light, otherwise a red light. How can it be possible for a specific cube to know whether or not is in the right position?
      p.s I'm a beginner in Arduino.

      Thank you in advance!

      wallyllamaW Offline
      wallyllamaW Offline
      wallyllama
      wrote on last edited by
      #2

      @maggie Im assuming the cubes can be in any arrangement as long as faces touch flat. With 9 cubes you have 56 unique sides, if you had a magnet on each face so they make good contact, each cube would only need to know which face is connected to each of its 6 faces, maybe generate an interrupt when two magnets touch, the faces could exchange numbers.... lots to fill in to make this work, but it may be a start. Im not sure where mysensors code helps either.

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #3

        In fact it is more arduino related rather than mysensors. Anyway you could have IR sending out the sides with a unique code and a receiver on all sides checks that it is receiving a specific code from the adjacent block. If you have a fixed board you could have the IR sending also from board to see if the position is right, but you can not know if it has been rotated in wrong direction. Good luck :D

        1 Reply Last reply
        0
        • Nca78N Offline
          Nca78N Offline
          Nca78
          Hardware Contributor
          wrote on last edited by
          #4

          Hello, you can probably get some inspiration from this project made by students ;)

          https://youtu.be/tPrO4Gg0kNM

          1 Reply Last reply
          2
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          25

          Online

          11.7k

          Users

          11.2k

          Topics

          113.1k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular