using Gyroscope GY_521 module with Arduino Uno and Processing

  • Status: Closed
  • Prize: £30
  • Entries Received: 9

Contest Brief

hi all,
I am enthusiast and learning to use Arduino in my free time,
using Arduino 1.8.19
using Processing 3.5.4
windows 7

i used the code for both Arduino and processing from the link below.

http://www.geekmomprojects.com/gyroscopes-and-accelerometers-on-a-chip/

i am using GY_521 module and tried to see the data on processing. although i can read data on the serial monitor i see a lot of worries as the screenshot attached
the problem kicks in when i use processing, when i hit run a big grey window open but thing else and an error shown on the console as below.

processing error:
OpenGL error 1280 at bot beginDraw(): invalid enumerant
ArrayIndexOutOfBoundsException: 1

this line is highlighted on processing when the error pops up
String portName = Serial.list()[portIndex];

Recommended Skills

Top entries from this contest

View More Entries

Public Clarification Board

No messages yet.

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!