• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Heltec CubeCell und Helium-Netzwerk

Q&A Forum › Heltec CubeCell und Helium-Netzwerk
0 Vote Up Vote Down
uengel asked 3 years ago

Hallo Sara, ich verfolge gerne eure tutorials und habe auch schon einige Projekte nachgebaut.
Nun beschäftige ich mich gerade mit dem Thema Helium-Netzwerk. Mit den Sensoren LHT65 (Temp und Luftfeuchte) und einem Hack des IKEA-Luftquali-Sensor habe ich begonnen, eine kleine Wetterstation mit Helium und UBIDOTS für die Datenanzeige in Widget aufzubauen. Wenn der LHT52 nächste Woche geliefert wird, kommen noch die Werte für das Raumklima dazu.
Danach wollte ich auf der Basis eines heltec CubeCell Boards noch ein Anemometer integrieren, um die Windgeschwindigkeit zu messen. Da ich kein Programmierer bin und man dazu für den CubeCell einen eignen Sketch und Decoder benötigt, habe ich schon im Internet gesucht. Leider habe ich dazu noch nichts gefunden.
Leider habe ich auch bei Euch nichts finden können. Es gibt nur Beispiele, wo ein Arduino UNO die Geschwindigkeit des Windes mit Anemometer ermittelt und auf einen OLED ausgibt. Das hilft mir aber nicht viel weiter, da CubeCell und Helium einen anderen Sketch benötigen.
Habt ihr nicht mal Lust, auch zu Helium-Netzwerk oder TTN (TTS) diesbezüglich etwas zu schreiben? Ich will mich langsam einarbeiten und benötige dazu Unterstützung und Begleitmaterial.
Viele Grüße Ulli

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
 
Unfortunately, at the moment I don’t have one of those boards to experiment with.
I think you can install an Arduino compatible package on Arduino IDE as you do for the ESP32. Then, you’ll have the Cube Cell board available in the boards menu. Check their documentation:

  • https://github.com/HelTecAutomation/CubeCell-Arduino

 
Then, they have several LoRa examples here:

  • https://github.com/HelTecAutomation/CubeCell-Arduino/tree/master/libraries/LoRa/examples

 
I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
uengel answered 3 years ago

Hallo Sara, vielen Dank für die schnelle Antwort.
Richtig ist, dass man über die Preference eine neue URL einbinden muss und dann im Boardmanager das CubeCell-Board integrieren kann. Man findet es dann in der Boardauswahl.
Das habe ich so schon einmal durchgeführt mit den “IKEA-Hack-Luftqualisensor”. Da hatte ich aber einen fertigen sketch und einen Decoder und konnte so den Sensor (CubeCell-Board) entsprechend in der Helium-Console integrieren.
Nun habe ich aber das Problem, dass ich zum Thema “Anemometer” keinen sketch habe, den ich auf den CubeCell laden kann. Und auch ein zugehöriger Decoder fehlt mir. Ich bin eben kein Programmierer und der CubeCell hat seine Besonderheiten wegen Helium-Zugang.
Deshalb suche ich auch Leute, die sich damit auskennen und ein sketch leicht programmieren können. Aktuell läuft mein Anemometer auf einem Arduino UNO mit Oled.

Hier mein Arduino UNO sketch:

#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
const int RecordTime = 3; //Define Measuring Time (Seconds)
const int SensorPin = 3; //Define Interrupt Pin (2 or 3 @ Arduino Uno)
int InterruptCounter;
float WindSpeed;
void setup()
{
Serial.begin(9600);
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
}
void loop()
{
meassure();
Serial.print(“Wind Speed: “);
Serial.print(WindSpeed); //Speed in km/h
Serial.print(” km/h – “);
Serial.print(WindSpeed / 3.6); //Speed in m/s
Serial.println(” m/s”);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(0, 10);
display.println(“Wind Speed: “);
display.setCursor(0, 20);
display.println(WindSpeed);
display.setCursor(50, 20);
display.println(” km/h “);
display.setCursor(0, 40);
display.println(WindSpeed / 3.6);
display.setCursor(50, 40);
display.println(” m/s”);
display.display();
}
void meassure() {
InterruptCounter = 0;
attachInterrupt(digitalPinToInterrupt(SensorPin), countup, RISING);
delay(1000 * RecordTime);
detachInterrupt(digitalPinToInterrupt(SensorPin));
WindSpeed = (float)InterruptCounter / (float)RecordTime * 2.4;
}
void countup() {
InterruptCounter++;
}

Vielen Dank und viele Grüße

 

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Unfortunately, I’m not familiar with that board and I never experimented with it.
Have you tried using the same sketch you use on an Arduino on that board?
Regards,
Sara
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.