Posts Tagged ‘arduino’

Class: Technology & City Project.

Material: Plywood, acryl, Arduino, RFID scanner, motors.

Aim: Create the prototype for the automatic waste separation tube.

DataTube is an improvement of the existing waste tube in Russian houses with an aim to make recycling easier to local people, to encourage recycling behaviour, collect data about waste production for the researchers and introduce recycling programs for buildings depending on their waste production. The project was inspired by existing social and digital studies. For example, a study by Sterner (1998) showed that if recycling takes more time, people less willing to recycle and tend to produce more waste. Another work which was an inspiration is TrashTrack where tracking technologies were used to understand the movement of waste after its disposal. For DataTube project waste play a role as an indicator and social profile of the person who throws it away. From waste activities, different personal information can be understood: social statuses, gender, age, hobbies and etc.

DataTube prototype is based on Arduino Leonardo with RFID scanner (code reader), servo motors and IR sensors. The mechanism is consisting of “trash stoppers” (Separator 1) controlled by servo motors and then Separator 2 which are also controlled by servo motors. By default, Separator 1 is always in a closed position to prevent garbage to fell directly to the bins without separation. If the code reader will be not able to recognise RFID then waste will go to the general waste bin. In the future trash bins can be equipped with sensors which identify fullness of the bin and automatically send a request to the Management Company to take appropriate actions . Also, the number of recycling bins will be more then three.

The first real prototype of DataTube.
The schematic representation of the DataTube and first real prototype.

The Arduino code for the separators and motors can be found via the QR code below. Or via the link
https://drive.google.com/drive/folders/1AmCppujyjM62cpaZZTWzPNzyqZNk5Z7u

DataTube is an example of what the future waste tube can be to provide convenient waste separation to the Russian householders. Their easier solution exists, for example recycling containers, but our goal was to change architecture with minimum impact on human behaviour. The major limitation of the project as there no studies available about people’s behaviour towards waste tube: some houses remove them; others prefer to not use waste tubes due to the unsanitary conditions. Before implanting such program additional research is needed.

References

Sterner, T. & Bartelings, H. (1998). Household Waste Management in a Swedish Municipality: Determinants of Waste Disposal, Recycling and Composting. Environmental and Resource Economics, pp.
473 491. [Online]. Available from: https://www.researchgate.net/publication/5146296_Household_Waste_Management_in_a_Swedish_Municip
ality_Determinants_of_Waste_Disposal_Recycling_and_Composting
Date accessed: 11 July 2019

TrashTrack (n.d ). [Online]. Available from: http://senseable.mit.edu/trashtrack/
Date accessed: 11 July 2019


Class : Technology

Software : Arduino IDE

Equipment : Arduino UNO Board, HC-05 Bluetooth Module, Breadboard, Jumper Wires, Fan

Challenges :
  • Making proper connections from Arduino to the components.
  • Understanding the Rx and Tx connections from Bluetooth Module to Arduino.
  • Programming the code.


Approach:

To advance with our projects here in Shukhov Lab, it was necessary for us to learn how to operate and program the Arduino boards and perform basic activities. In this project I was trying to work with an Arduino and bluetooth module setup for controlling a DC Motor (A fan in this case) using a smartphone.

  Process: First it is required to assemble all components together and make the connections.

 

I have initially connected the bluetooth module to the breadboard and made necessary connections to the arduino board using male-male jumper cables.

 

The connection for the bluetooth module are as follows:

BLUETOOTH    –           ARDUINO

Txd  –  Rx

Rxd  –  Tx

Gnd  –  Gnd

Vcc  –  3.3V

 

Next I connected the DC powered fan to the arduino and connected it with GND for the negative terminal and PIN-8 for the positive terminal.

I chose pin 8 here because I have activated it in the code using the statement (int ledpin = 8;)

The connections to the arduino board are shown on the image below:



Finally we upload the developed code to the arduino board.

*NOTE:
  • It is very important to disconnect the Rx and Tx cables from the bluetooth module before uploading the code or it might display an error.
  • Always disconnect the arduino power source before making any wiring changes to avoid short circuit.
  The code which I used can be found below:

char val;

int ledpin = 8;

void setup() {

pinMode(ledpin, OUTPUT);

Serial.begin(9600);

}

void loop() {

if( Serial.available() )

{

val = Serial.read();

}

if( val == ‘H’ )

{

digitalWrite(ledpin, HIGH);

} else {

digitalWrite(ledpin, LOW);

}

delay(100);

}



  I have also downloaded an application on my phone, from which I can send signal to the Bluetooth module.

It is necessary to download this app or a similar app. You can download one from the link below:

https://apkpure.com/arduino-bluetooth-controller/com.giumig.apps.bluetoothserialmonitor/download?from=details  

After uploading the code, I disconnected the power from arduino board connected back the Rx and Tx cables and plugged back the power source into the arduino (it can be from your notebook’s USB or via 5V power adaptor)

Next I opened my bluetooth settings in my phone and paired the device with bluetooth module HC-05.

*NOTE: 
  •  In case of password prompt, use – 1234
  •  Typing H on the bluetooth app activates signal and typing anything else switches it off.


Then open the app (arduino bluetooth controller) and select the device (HC-05) from the list of paired devices and connect with the switch or terminal modes as shown below. In my case I have used the Switch mode and set the parameters for ON button as “H” and OFF button as “X”. Otherwise you can manually use the Terminal mode.



The fan rotates on sending the signal “H” (ON) and switches off on sending signal “X” (OFF) successfully.

It is demonstrated in the video below:

   

Class: Technology, Arduino

 

Hardware:

  • Arduino Uno
  • Breadboard Circuit
  • Jumper Wires
  • DHT11 sensor x 1
  • Mini Servo Motor x 2
 

Software:

  • Arduino
 

Task:

The idea was to program servo motors to rotate according to humidity and temperature as an input. I used two servo motors and DHT 11 sensor. When temperature gets higher than 26c, servos start rotating for 180, when the temperature goes down, they rotate back.

Assembly:

I prepared all the components. After I began to wire them, actually it took much time, because I didn’t know how how to do that. I started searching on www.instructables.com for similar projects, i found some and began to create the code. When I finished it all worked well, servos were rotating according to the temperature and humidity. I was really proud of myself. You can check my code at the end of the post.

 



Arduino Uno code servo DHT11  
Class: Technology, Arduino
Software: Arduino 1.8.5
Materials:
  • 1 Arduino Uno card
  • 1 solderless breadboard
  • 1 bipolar transistor
  • 1 LED scale
  • 1 1 kΩ resistor
  • 4 resistors with a rating of 220 Ohm
  • 8 wires “Male-male”

SCHEMATIC DIAGRAM

VIDEO OF PROCESS

SCETCH OF CODE

#define CONTROL_PIN  9
int brightness = 0;
void setup()
{  pinMode(CONTROL_PIN, OUTPUT);
}
void loop()
{  brightness = (brightness + 1) % 256;
  analogWrite(CONTROL_PIN, brightness);
  delay(10);
}
 

FINAL RESULT

address: 20 Myasnitskaya ulitsa
(metro stations ‘Lubyanka’ and ‘Kitay-Gorod’)
Moscow 101000 Russia

phone: +7(495)772-95-90 *15026

email: city@hse.ru