Arduino: Difference between revisions

From wikiluntti
 
(10 intermediate revisions by the same user not shown)
Line 7: Line 7:
See also Python introduction how to plot csv (or log) data: [[Plot Cansat or any csv data using Python]]
See also Python introduction how to plot csv (or log) data: [[Plot Cansat or any csv data using Python]]


== Theory ==
== Arduino Curriculums ==


Tutorials for different Arduino curriculums
Tutorials for different Arduino curriculums
Line 14: Line 14:
# Arduino Uno and also with Arduino Nano
# Arduino Uno and also with Arduino Nano
# Display: SSD1306 0.96 inch I2C OLED  // or 5110 (works 3.3V; is there i2c?).
# Display: SSD1306 0.96 inch I2C OLED  // or 5110 (works 3.3V; is there i2c?).
# Ledstrip to each side
# Ledstrip (WS2811 or WS2812) to each side
# Analog Devices:  
# Analog Devices:  
## NTC,  
## NTC,  
## led,  
## Led,  
## Light resistor
## Photo resistor (also phototransistor and photodiode)
## Potentiometer  
## Potentiometer  
## resistor
## Resistor
## Soil moisture
## Push button
# Li Battery
# Li Battery
# Data storage
# Data storage
Line 35: Line 35:
## Hall sensor (magnetic field)
## Hall sensor (magnetic field)
## Ultrasonic sensor
## Ultrasonic sensor
## Soil moisture (resistive/ capacitive)
## Humidity sensor
## Humidity sensor
## Flame sensor
## Flame sensor
## UV light sensor
## UV light sensor
## Force sensor, Stretch sensor, Flex sensor, Tension sensor, Torque sensor
## Force sensor, Stretch sensor, Flex sensor, Tension sensor, Torque sensor
## Touch sensor
## Touch sensor (capacitive)
## Proximity sensor
## Proximity sensor
## Sound sensor
## Sound sensor
# (Air flow sensor; Expensive)
## Rainfall sensor
## Gas sensors (Most common MQ series)
## Pressure (barometric) sensor
## IR receiver
## PIR sensor
## Tilt sensor
## GPS module
## Radar sensor (eg RCWL-0516)
## Heart rate sensor
## Multiplexer
# (Air flow sensor. Water flow sensor.)
# (Motor controller; perhaps for a line follower vehicle)
# (Motor controller; perhaps for a line follower vehicle)


== Sulphur ==
SO2/ H2S sensors
* MICS-5524 CO, Ethanol, Hydrogen, Ammonia, Methane. Rs.
* MQ136
* MQ2
* SO2-B4 SO2 Alphasense
== Cansat ==


Arduino Cansat tutorials [[Cansat tutorials]]  
Arduino Cansat tutorials [[Cansat tutorials]]  
Line 123: Line 144:
* https://docs.google.com/document/d/1bruEN23qnMu5oZSze9UNT5XXQ5hISCS8Bi35CEtzGw4/edit
* https://docs.google.com/document/d/1bruEN23qnMu5oZSze9UNT5XXQ5hISCS8Bi35CEtzGw4/edit
* https://www.esero.fi/cb7-etusivu
* https://www.esero.fi/cb7-etusivu
== Arduino vasta-alkajille ==
https://chlorinated-fire-b99.notion.site/Arduino-vasta-alkajille-1d33e865ff754964ab8ed1ae2db7a89d

Latest revision as of 20:41, 9 October 2024

Introduction

Some Arduino related stuff.

Use e.g. Cool Term Win to save logged terminal data from serial monitor. The serial monitor need to be closed during the recording.

See also Python introduction how to plot csv (or log) data: Plot Cansat or any csv data using Python

Arduino Curriculums

Tutorials for different Arduino curriculums

Arduino Kit. Plans for a hexagonal not-so-simple school friendly Arduino setup

  1. Arduino Uno and also with Arduino Nano
  2. Display: SSD1306 0.96 inch I2C OLED // or 5110 (works 3.3V; is there i2c?).
  3. Ledstrip (WS2811 or WS2812) to each side
  4. Analog Devices:
    1. NTC,
    2. Led,
    3. Photo resistor (also phototransistor and photodiode)
    4. Potentiometer
    5. Resistor
    6. Push button
  5. Li Battery
  6. Data storage
    1. Radio (HC-12)
    2. SD card recorder
  7. Digital sensors
    1. MPU6050 // MPU9250 (included in gy-91). https://sureshjoshi.com/embedded/invensense-imus-what-to-know
    2. Barometer
    3. pH sensor
    4. CO2 sensor
    5. RF tag reader
    6. Color sensor
    7. Hall sensor (magnetic field)
    8. Ultrasonic sensor
    9. Soil moisture (resistive/ capacitive)
    10. Humidity sensor
    11. Flame sensor
    12. UV light sensor
    13. Force sensor, Stretch sensor, Flex sensor, Tension sensor, Torque sensor
    14. Touch sensor (capacitive)
    15. Proximity sensor
    16. Sound sensor
    17. Rainfall sensor
    18. Gas sensors (Most common MQ series)
    19. Pressure (barometric) sensor
    20. IR receiver
    21. PIR sensor
    22. Tilt sensor
    23. GPS module
    24. Radar sensor (eg RCWL-0516)
    25. Heart rate sensor
    26. Multiplexer
  8. (Air flow sensor. Water flow sensor.)
  9. (Motor controller; perhaps for a line follower vehicle)


Sulphur

SO2/ H2S sensors

  • MICS-5524 CO, Ethanol, Hydrogen, Ammonia, Methane. Rs.
  • MQ136
  • MQ2
  • SO2-B4 SO2 Alphasense

Cansat

Arduino Cansat tutorials Cansat tutorials


Arduino Cansat project. See also https://github.com/markkuleino/cansat/. See jumpers

  1. J2 and J3 are not connected, you can program the Arduino.
  2. J2 (and J3) connected: you can transmit data through the radio.
  3. J4 (and J5) connected: you enable data storage in the MicroSD-card.
  4. J6 connected: the EN pin on the APC220 radio module is connected to the digital port D7 on the Arduino.
  5. J7 or at J8 or both in order to connect power to the Gy-87/88/91.


Detailed (or hardcodre) instructions:

  • GY-91
  • I2c scanner
  • GY-91 reading digital data
  • Altimeter MPL3115A2
  • SCD-40 CO2 sensor

Projects

Cansat Arduino

Cansat Version 7
Cansat Version .... This version has MPX4115A pressure sensor.

Check the pins while uploading, saving or using memory card.

  • Not found. . . Remove the pins.
    1. CanSat-laajennuspiirilevyssä on oikeanpuoleisen kuvan mukaisesti kaksi hyppyjohdinsarjaa, J2 ja J3.
    2. Kun J2- ja J3-hyppyjohtimia ei ole kytketty, voit ohjelmoida Arduinoa.
    3. Kun asetat hyppyjohtimet kohtiin J2-1 ja J2-2, voit lähettää tietoja radiolla.
    4. Kun asetat hyppyjohtimet kohtiin J3-1 ja J3-2, voit ottaa käyttöön tietojen tallentamisen SD-kortille (jos se on kytketty).


Caption text
TASK Sat-1 Sat-2 Sat-3 Sat-4
GY-91 Runs burning hot. Acc values are zero OK. Addresses 0x68 and 0x76 Red light do not turn on. I2C_scanner do not find the sensors. Works!
NTC Example Example Works!
Datalogger Example Example Works.
Radio Example Example Works

Some local links

Esero manuals

Arduino vasta-alkajille

https://chlorinated-fire-b99.notion.site/Arduino-vasta-alkajille-1d33e865ff754964ab8ed1ae2db7a89d