Mturk Jobs

Mturk Jobs
Mturk Jobs

Tank

Friday, December 22, 2017

Arduino Avionics


Today I searched for the existence of Arduino in the world of Aviation and guess what I have found..

I found many websites and projects that take opensource aviation seriously.


Here is a Cambridge postgraduate student who helped design a modular opensource rocket avionics system that consists of modular Disc-Shaped PCB stacks.
Screen Shot 2017-08-20 at 1.08.32 PM

custom-avionics-adam-greig-martlet-thumb





https://hackaday.com/2017/08/21/open-source-modular-rocket-avionics-package/


And this is a website for a project that aims to make general aviation safely available for everyone.

http://makerplane.org/


Open Source Magneto Signal Stabilizer








This website makes it easy for Arduino enthusiasts and hobbyists to make their own Avionics systems using the DIY culture.





http://experimentalavionics.com


Arduino EFIS 

http://experimentalavionics.com/efis-19264/


EFIS prototype board


EFIS screenshot




Thursday, December 14, 2017

OBDuino Arduino Trip Computer

This is an open source car trip computer based on the popular Arduino platform.

It calculates trip information such as fuel consumption, cost, remaining fuel, miles per gallon, miles per tank and also displays OBD parameters.

OBDuino.ca

It first started as of 2008 based on the MPGuino project to get an open source platform for hobbyists to connect to the OBD standard.






Thank you for reading.

Check my books on Amazon





Embedded Systems, Electronics: My Projects Collection From Instructables by [Ebeed, Ahmed]








PC Fan Wind Turbine: How to turn an old PC Fan into a small wind turbine the easy way by [Ebeed, Ahmed]












Saturday, December 9, 2017

Arduino speech recognition

This day I'm using the speech recognition module with Arduino UNO.

My wife has brought me this Arduino Module as my birthday gift. I'll show you how it can be used.





It can be connected to Arduino or to any other Microcontroller through serial port.

It can also be connected to the standard PC through its serial port but through a TTL converter. Since a standard PC serial port sends and receives RS232 signals (+12v and -12 v) but this module handles TTL signals ( 0 and +5 v )




You can control this module through HEX Format commands or through Arduino libraries associated with it.






First, I had to configure it using USB port in my laptop through this FOCA circuit which converts USB signals to TTL signals.



Then I could use Arduino libraries to initialize the module and load it with speech commands.

The module can store up to 80 voice commands. Then it can differentiate between each one and send signals to Arduino upon command recognition.

Friday, December 8, 2017

PS2 Keyboard Bluetooth interface to Android Smartphone

Do you like using the keyboard to record your thoughts and to code?

Have you ever thought of using the normal sized keyboard to type in your Android smartphone?

Can you make an Arduino project that connects your favorite keyboard with your smartphone via Bluetooth connection?

Today I came to the idea and loved it very much.

It's very simple to implement.

Using Arduino mini and HC-06 Bluetooth module and connect them to the PS2 keyboard.

You can then read text from keyboard and send it wirelessly to the smartphone.


Here is the PS2 Connection to Arduino and code for this project.

This project can be found on Arduino platform

https://playground.arduino.cc/Main/PS2Keyboard


And here is the connection for it.







Note:

Make sure you connect the Clock PIN to the digital PIN 3 on the Arduino. Otherwise the interrupt, and therefore the whole library, won't work.

In this project, we used the The PS2Keyboard library.

Usage:

This is sample code;

#include

#define DATA_PIN 4
PS2Keyboard keyboard;

void setup() {
  keyboard.begin(DATA_PIN);

  Serial.begin(9600);
  Serial.println("hi");
  delay(1000);
}

void loop() {
  if(keyboard.available()) {
    byte dat = keyboard.read();
    byte val = dat - '0';

    if(val >= 0 && val <= 9) {
      Serial.print(val, DEC);
    } else if(dat == PS2_KC_ENTER) {
      Serial.println();
    } else if(dat == PS2_KC_ESC) {
      Serial.println("[ESC]");
    } 
  }

}


HC-06 Bluetooth Module to Arduino Mini Connection




HC-06ARDUINO
VCC->+3.3V
GND->GND
TX->2
RX->3




 HC-06 ----- Arduino


VCC   ---   3.3v 


 GND --- GND 


TXD   ---   RXD 


RXD   ---   TXD



Now we can add the stuff together to make our complete project.

PS2 Keyboard

Adruino Mini Pro

HC-06 Bluetooth Module

3.7V Li-Poly Battery

Android Smartphone

Android App : Arduino Bluetooth Control
Arduino Bluetooth Control App


Cover art




Wednesday, December 6, 2017

Bitcoin Mining Using Raspberry Pi

Today I came to search for Arduino Bitcoin Mining but I found that the process of Bitcoin mining requires a huge processing power.


So, instead of being made using software, it's being made using ASIC(dedicated hardware).

Arduino is not a suitable platform for Bitcoin Mining.

But you can use those USB ASIC Mining sticks on PC or on Raspberry Pi






The best part is that using this configuration uses only the power of Raspberry Pi ~ 4 watts plus the power of USB ASIC Miner ~ 2.5 watts. Which is a much lower power of the PC or other ASIC Miner.


Monday, December 4, 2017

PC Fan Wind Sensor with Arduino

You can use an Old PC Fan as a wind sensor as in this project. Yes, you can make an easy anemometer using Arduino and a PC Fan.


In this project, a 3 wire PC fan is used. The third wire comes from a Hall Effect sensor that measures the fan speed.


As the fan rotates, the Hall Effect sensor produces pulses.

The results are sent to the serial monitor.

Here is the code that does the job:

#include 
#include "FanMonitor.h"

// ***
// *** Pins
// ***
#define FAN_MONITOR_PIN 5

// ***
// *** Define the FanMonitor instance to monitor
// *** the 3-wire fan.
// ***
FanMonitor _fanMonitor = FanMonitor(FAN_MONITOR_PIN, FAN_TYPE_BIPOLE);

void setup()
{
  // ***
  // *** Initialize the serial port.
  // ***
  Serial.begin(115200);

  // ***
  // *** Initialize the fan monitor.
  // ***
  _fanMonitor.begin();
}

void loop()
{
  // ***
  // *** Get the fan speed.
  // ***
  uint16_t rpm = _fanMonitor.getSpeed();

  // ***
  // *** Print the speed to the serial port.
  // ***
  Serial.print("Speed = "); Serial.print(rpm); Serial.println(" RPM");
  
  // ***
  // *** Delay 1 second.
  // ***
  delay(1000);
}


I thought of something a little bit different.

I've managed to make a PC Fan wind Turbine by removing the PC Hall Effect sensor and electronic commutator IC and connecting the terminals to the Fan winding.

You can find more details about it here.



By making this connection, I've turned the PC Fan into a small wind turbine that produced about 3-6 Volts in fair wind speed.




The output voltage can light an LED. And it can also be used as an indication for wind speed.




By connecting the output of the modified PC Fan to Arduino Analog Input, we can get an indication for wind speed.



Using Arduino in this project makes monitoring and calibration process very simple and straight forward.

More photos, code and results will be available soon.

Thank you for reading.

Check my books on Amazon





Embedded Systems, Electronics: My Projects Collection From Instructables by [Ebeed, Ahmed]








PC Fan Wind Turbine: How to turn an old PC Fan into a small wind turbine the easy way by [Ebeed, Ahmed]










Saturday, December 2, 2017

16F84A One Bit Sound Generation

I found this topic that uses Microchip PIC16F84A Microcontroller as a One Bit Sound recorder and reproducer.

The sound is recorded and regenerated using BTc (Binary Time Constant) algorithm.





The algorithm is designed to be Microcontroller friendly with the minimum Software and Hardware resources.



It's really impressive how you can use only one bit to reproduce digitally recorded sound using simple hardware with small Microcontroller such as PIC16F84A or any other Microcontroller.






You can find more details on the topic from here

Friday, December 1, 2017

PIC 16F84A Capacitive touch Sensor using minimum hardware

I've previously thought of making a capacitive touch sensor that works as touch switch using the PIC 16F84A Microcontroller.

I had a lamp that works using capacitive touch as a switch and it gave me the idea.

When I worked with the microcontroller and there was some error or bad connection in hardware circuit I noticed that the microcontroller showed irregular behavior during touching it when reading zeros and ones inputs to the GPIOs.

Here's how I got the idea of using the microcontroller as a touch sensor.

I've tried to make the circuit and code it myself but I had unreliable results. I thought that the idea was wrong and would never work.

When I searched for it online I found a video showing how it worked so good. I wanted to share it with you.

I found it on this blog:

http://diytronics.blogspot.com.eg/2011/05/capacitive-touch-sensor-for-pic16f84a.html

I'll try it and will make some modification to it.
I'll also add a photo of my own circuit.






Here is the basic C code that does the job

int freqcapsense(){
    unsigned int avg;
    unsigned int current=0; 
    unsigned int thresh=29;

    unsigned int trials=10;

    while(trials>0){
        TRISA=0b0;
        RA0=1;
        delay();
        TRISA=0b1;
        while(RA0==1){current++;}
        trials--;
        avg=(avg+current)/2;
    }


    if((current-avg)>thresh){return 1;}
    else{return 0;}


    //return current;
}

Here is a video from the maker




The idea is very simple and straight forward.

The code can be applied to any microcontroller with this C language code.

Thank you for reading.


Tank