Nitramite
  • Home
  • Applications
    • Noiser
    • QuickScan
    • Radiation Detector
    • NITSPEC
    • Cryptography >
      • Getting started
      • Poly Square Guide
      • WhatsApp Decryptor Guide
      • Messaging Guide
      • Hash Cracker Guide
      • Checksum Guide
      • Steganography Guide
      • User puzzles guide
      • Visual Ciphers guide
      • File Encryption Guide
      • Encrypted QR codes guide
      • Remote Server API
      • Cryptography Description
      • Password Generator Guide
    • Clear And Go
    • Paketin Seuranta
    • APCUPSDMonitor
    • Grow Lab
    • FRDB >
      • FRDB Guide
      • FRDB Web
      • FRDB Android
    • Crypto Messenger >
      • Getting started with CMSG
    • ArduinoWC >
      • Mega 2560
  • Games
    • Poker Pocket
  • Contact
  • EULA
  • RESOURCES
    • Privacy Policy
    • Thingiverse
    • M737
    • Logos
    • app-ads
  • Home
  • Applications
    • Noiser
    • QuickScan
    • Radiation Detector
    • NITSPEC
    • Cryptography >
      • Getting started
      • Poly Square Guide
      • WhatsApp Decryptor Guide
      • Messaging Guide
      • Hash Cracker Guide
      • Checksum Guide
      • Steganography Guide
      • User puzzles guide
      • Visual Ciphers guide
      • File Encryption Guide
      • Encrypted QR codes guide
      • Remote Server API
      • Cryptography Description
      • Password Generator Guide
    • Clear And Go
    • Paketin Seuranta
    • APCUPSDMonitor
    • Grow Lab
    • FRDB >
      • FRDB Guide
      • FRDB Web
      • FRDB Android
    • Crypto Messenger >
      • Getting started with CMSG
    • ArduinoWC >
      • Mega 2560
  • Games
    • Poker Pocket
  • Contact
  • EULA
  • RESOURCES
    • Privacy Policy
    • Thingiverse
    • M737
    • Logos
    • app-ads
20-11-2016 : Fast and ugly article for app setup.

ArduinoWC application setup for Arduino Mega 2560 R3

First time operations
First of all download Mega2560 code from file below (arduinowc.rar), download arduinojson-master.rar and taskscheduler-master Arduino IDE libraries. Library licenses are inside them. Ethernet library is Arduino IDE's stock one. If you don't know how to unzip packages or how to install libraries on Arduino IDE look from the web. My Arduino code is actually very straight forward and it's completely up to you how you use pins, as outputs to Android or as inputs from Android device.
arduinowc.rar
File Size: 3 kb
File Type: rar
Download File

arduinojson-master.rar
File Size: 1188 kb
File Type: rar
Download File

taskscheduler-master.zip
File Size: 215 kb
File Type: zip
Download File


Picture
  • First of all, start AndroidWC application and take your UUID from there. (Person icon at the top bar)
    UUID is important and it separates you from other users.
  • Paste UUID at the String field UUID within the " "; Just like in the image.
  • Network configuration is up to you, it's using DHCP by default. Generate new MAC address if needed.

Picture
  • Next thing to do is to configure your pins. Configure what ever you want.
  • In my case I have declared list of pins which are led's and one soil moisture sensor which parameters will be send to Android device, not receive.
  • Remember to set pinModes and all normal things at void setup()

Picture
  • Since I'm using taskScheduler library, you can add more tasks to do certain readings and calculations where ever and when ever you want.
  • At the demo purposes I'm reading moisture sensor value before making HTTP post, so new just read value is going to be passed to my server.
  • pin_a0 is declared as global variable so newly read value is always there.

Picture
  • Here is where the actual magic happens.
  • All pin values are set the corresponding global variables on every HTTP run. This is when new value comes in from the Android device.
  • I'm using ternary operation right after parsed json value to set led high or low. This value can be basically anything.

Powered by Create your own unique website with customizable templates.