ShotokuTech
Published © GPL3+

Oplà Arduino IoT Kit in a Rocket #CloudGames2022

Let's fly this rocket with the Oplà IoT Kit and a Verizon WiFi hotspot on board, while monitoring the sensors from the ground.

AdvancedFull instructions provided1,745
Oplà Arduino IoT Kit in a Rocket #CloudGames2022

Things used in this project

Hardware components

Arduino Oplà IoT Kit
Arduino Oplà IoT Kit
×1
Orbic Verizon Speed Mobile Hotspot
×1
Madcow Super DX3 Rocket
×1
I500T-14A DMS High Power Single Use Motor
×1

Software apps and online services

Arduino IoT Cloud
Arduino IoT Cloud
Arduino Web Editor
Arduino Web Editor

Story

Read more

Custom parts and enclosures

Payload Carriers for 4 Inch Diameter Rocket

I am preparing the Madcow Super DX3 high powered rocket to carry the Oplà IoT Kit and the WiFi hotspot. This included 3D printing these carriers to secure the Oplà and the Hotspot inside the payload section of the Super DX3. This is thing:5259981 if the link below does not work.

Code

RocketOpla_feb13a.ino

C/C++
Monitor Temperature, pressure, humidity, motion on X,Y and Z axis on the Arduino Cloud dashboard.
// Arduino_Sensorkit - Version: 1.0.8
#include <Arduino_SensorKit.h>
#include <Arduino_SensorKit_BMP280.h>
#include <Arduino_SensorKit_LIS3DHTR.h>

/* 
  Sketch generated by the Arduino IoT Cloud Thing "Untitled 2"
  https://create.arduino.cc/cloud/things/5f7220e6-ab0e-4276-8351-6cefd5a38d62 

  Arduino IoT Cloud Variables description

  The following variables are automatically generated and updated when changes are made to the Thing

  float a_x;
  float a_y;
  float a_z;
  float humidity;
  float pressure;
  float temperature;

  Variables which are marked as READ/WRITE in the Cloud Thing will also have functions
  which are called when their values are changed from the Dashboard.
  These functions are generated with the Thing and added at the end of this sketch.
*/
#include "thingProperties.h"
#include <Arduino_MKRIoTCarrier.h>
MKRIoTCarrier carrier;

float x;
float y;
float z;


void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 

  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4

  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
 */
  	
  while (ArduinoCloud.connected() != 1) {
	ArduinoCloud.update();
	delay(500);
  }

  delay(500);
  CARRIER_CASE = true;
  carrier.begin();
  carrier.display.setRotation(0);
}

void loop() {
  ArduinoCloud.update();
  // Your code here 
  temperature = carrier.Env.readTemperature();
	humidity = carrier.Env.readHumidity();
	pressure = carrier.Pressure.readPressure();
    carrier.IMUmodule.readAcceleration(x, y, z);
    a_x = x;
    a_y = y;
    a_z = z;

  }

Credits

ShotokuTech
0 projects • 2 followers

Comments