Saturday, 30 September 2017

Playing different sounds with different colour

The sketch is very easy to understand and if you still think it's hard then you can read more about on all arduino posts page.

The sketch
#include <SoftwareSerial.h>
#define ARDUINO_RX 5 //should connect to TX of the Serial MP3 Player module
#define ARDUINO_TX 6 //connect to RX of the module
SoftwareSerial mySerial(ARDUINO_RX, ARDUINO_TX);
static int8_t Send_buf[8] = {0} ;

#define CMD_SEL_DEV 0X09
#define DEV_TF 0X02
#define CMD_PLAY_W_VOL 0X22
#define COMMON_ANODE
int redPin = 9;
int greenPin = 10;
int bluePin = 11;

const int buttonPin1 = 8;
const int buttonPin2 = 2;
const int buttonPin3 = 3;
const int buttonPin4 = 4;
const int buttonPin5 = 12;

int buttonState1 = 0;
int buttonState2 = 0;
int buttonState3 = 0;
int buttonState4 = 0;
int buttonState5 = 0;

void setup() {
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
      mySerial.begin(9600);
        Serial.begin(9600);
      delay(500);//Wait chip initialization is complete
        sendCommand(CMD_SEL_DEV, DEV_TF);//select the TF card
      delay(200);//wait for 200ms
}




void loop() {
buttonState1 = digitalRead(buttonPin1);
   if (buttonState1 == HIGH) {
setColor(0, 0, 255); // blue
sendCommand(CMD_PLAY_W_VOL, 0X0F01);//This is file you want to play.
      delay(700);//waiting time for the file above.
  } else {
setColor(0, 0, 0);
  }

buttonState2 = digitalRead(buttonPin2);
   if (buttonState2 == HIGH) {
setColor(0, 255, 0); // green
sendCommand(CMD_PLAY_W_VOL, 0X0F02);
      delay(700);
  } else {
setColor(0, 0, 0);
  }

buttonState3 = digitalRead(buttonPin3);
   if (buttonState3 == HIGH) {
 setColor(255, 0, 0); // red
sendCommand(CMD_PLAY_W_VOL, 0X0F03);
      delay(700);
  } else {
setColor(0, 0, 0);
  }

buttonState4 = digitalRead(buttonPin4);
   if (buttonState4 == HIGH) {
setColor(76, 4, 163); // dark violet
sendCommand(CMD_PLAY_W_VOL, 0X0F04);
      delay(700);
  } else {
setColor(0, 0, 0);
  }
 
buttonState5 = digitalRead(buttonPin5);
   if (buttonState5 == HIGH) {
setColor(255, 255, 0);// yellow
sendCommand(CMD_PLAY_W_VOL, 0X0F05);
      delay(700);
  } else {
setColor(0, 0, 0);
  }
}

void sendCommand(int8_t command, int16_t dat)
{
  delay(20);
  Send_buf[0] = 0x7e;
  Send_buf[1] = 0xff;
  Send_buf[2] = 0x06;
  Send_buf[3] = command;
  Send_buf[4] = 0x00;//0x00 = no feedback, 0x01 = feedback
  Send_buf[5] = (int8_t)(dat >> 8);//datah
  Send_buf[6] = (int8_t)(dat); //datal
  Send_buf[7] = 0xef; //ending byte
  for(uint8_t i=0; i<8; i++)//
  {
    mySerial.write(Send_buf[i]) ;
  }
}

void setColor(int red, int green, int blue)
{
#ifdef COMMON_ANODE
red = 255 - red;
green = 255 - green;
blue = 255 - blue;
#endif
analogWrite(redPin, red);
analogWrite(greenPin, green);
analogWrite(bluePin, blue);

iPhone 8 Plus vs. Note 8 ultimate 4k video comparison


Well, how many of us can buy any of these high priced smart phones? Yet some of us still dream to buy one, and it's always wise and better when you take a decision after watching the reviews so that you don't regret afterwards. CaseyNeistat the ultra rich guy has done one so you can see the differences.

The most noticeable things people have found are. The sound quality of Note 8 and video quality of iPhone 8 plus.

Best comments:
1. Audio is definitely better on the note 8 but I think I like the warm feel the iPhone gives :)

2. Camera on iPhone is better but samsungs audio tops the iPhone's by a mile.

3. I've used an iPhone for years and anybody that has sense can see the Note 8 won in video & audio.

It all depends what kind of picture quality you want. some people like warm and some people like cool. In this case video of the note 8 looks cool white and iPhone 8 plus's looks like warm (slightly dark yellowish colour). In my case I'm not getting any of them.

Ad



Friday, 29 September 2017

How to make fence/border security system

Well, no point to be unhappy about why I didn't explain how does the sketch work, which I've already said in the all Arduino posts page. All I can say here that, this sketch get inputs from 2x ultrasonic sensors and control the servo motor. That means if anything comes within the range of one ultrasonic sensor it will direct the camera in that way.
The Sketch

#include <Servo.h>
Servo myservo;  // create servo object to control a servo
int pos = 190;    // variable to store the servo position
int trigPin1 = 6;
int echoPin1 = 7;
int trigPin2 = 8;
int echoPin2 = 9;

void setup()
{
  pinMode(trigPin1, OUTPUT);
  pinMode(echoPin1, INPUT);
  pinMode(trigPin2, OUTPUT);
  pinMode(echoPin2, INPUT);
  Serial.begin(9600);
myservo.attach(10);  // attaches the servo on pin 10 to the servo object
}

void firstsensor(){ // This function is for first sensor.
int duration1, distance1;
  digitalWrite (trigPin1, HIGH);
  delayMicroseconds (10);
  digitalWrite (trigPin1, LOW);
  duration1 = pulseIn (echoPin1, HIGH);
  distance1 = (duration1/2) / 29.1;

  if (distance1 <=30) {  // Change the number for long or short distances.
for (pos = 1; pos >= 0; pos -= 1) { // goes from 1 degrees to 0 degrees
    // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(10);                       // waits 10ms for the servo to reach the position
  }

  } else {
  secondsensor();
  }
}

void secondsensor(){ // This function is for second sensor.
int duration2, distance2;
  digitalWrite (trigPin2, HIGH);
  delayMicroseconds (10);
  digitalWrite (trigPin2, LOW);
  duration2 = pulseIn (echoPin2, HIGH);
  distance2 = (duration2/2) / 29.1;


  if (distance2 <=30) {  // Change the number for long or short distances.
for (pos = 179; pos <= 180; pos += 1) { // goes from 179 degrees to 180 degrees
    // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(10);                       // waits 10ms for the servo to reach the position
  }

  } else {
  firstsensor();
  }
}

void loop() {
firstsensor();
delay(500); 
}


Ad



Saturday, 23 September 2017

Will Robots Take Our Jobs?


Summery of the video is that he thinks if robots take most of the jobs from human then that's not a bad thing, in fact it's good thing because then human can work on things that robots are not good at.
Ad

Well, that logic I don't think is good enough. Most of people are not creative, so if lot of people go out of jobs then how they will pay for the hings. For example if most of the restaurants becomes automatic and people become poor. Who will buy the food then? Only few people who have the money, right? He thinks he's got YouTube channel/s and gets money from YouTube ads plus sponsors and that's what made him think that everyone can make money like him.

Well, earning money from YouTube or website ads is not that easy. I've been doing YouTube and shit for long time still I can get enough money (not even £1 a day f* ridiculous) to leave my real work. Only people make money on YouTube and website who is extremely lucky. Even himself earn so much money from YouTube still comes up with bullshit sponsor ads in his videos.

Ad

Wednesday, 20 September 2017

This is why Sk tv is not reliable

If you don't know what SK tv is then here is a small description of it. It's a Bangla news channel on YouTube, Joined 11 Jul 2016, 376,555 subscribers and 156,794,605 views.  It has started as a solo news reporting of different things around the world. First people didn't take it seriously and probably took it as a joke and entertainer. But slowly slowly this small channel became a giant even some of the Bangladeshi official news channels don't have that much subscribers.
Ad




Reason of his success:
This guy knows how to grab people's attention and herd a huge amount of sheep (people who don't use their brain) very easily. The way he does it, is just by going with flow. That's the best rule I've found watching his videos, although I don't have any interest of wasting my time watching it any more.

If anyone want's to be like him then you can note these few things.
  • Attention grabbing titles (doesn't matter if the video is almost or completely different than the title). 
  • Make sure you photoshop all the thumbnails. Because it doesn't matter about the contents first you need to hook the fish first and then you are sorted. Most of the viewers are like cows and sheep. They don't look for quality (real) contents. They just look for things that make them happy and it looks nice (it doesn't matter if the pictures or other contents are completely irrelevant).  
  • Take religious emotions as your weapon. You know there are many religious sheep (those people are special kind of sheep) out there who get very emotional when anyone say something that backs their points, you can take that opportunity to boost your views. 
  • Use the word "Just now, Recently, It's happening now or words similar to these" in your title to make people think that you got the most fresh news or conten ever. Although it might be taken long time ago or other people already had reported it.
Ad

Most ridiculous thing I've noticed is that this guy won't be hesitate to produce news which probably can encourage terrorism. In a video he said about Bangladeshi border guard that "What you lot doing? Myanmar's helicopters and drones are breaching Bangladeshi airspace and you lot couldn't even fire an empty shot! Give your weapon to the normal public and go home and wear bangles and shari (shari is special women's cloth)." That means go home and stay at home like most girls and women do.

As you can see I've included 2 of his videos above. In the first video he bashes the Bangladeshi border guard and in the second video he praises them.  That proves that this guy is a completely A**hole, he will say something now and the next minute will say completely the opposite. And this is not his first time. In one video he made Turkish president Recep Tayyip Erdoğan hero for helping Rohingyas and talking about them, then in other video he blamed him by saying that he (Turkish President) doing that for his own gain. And there are lot of other examples like this which you can very easily find out just by watching few of his videos.

The main reason (which I think) is to get views, so that he can get more YouTube money. He's not bothered about real news or what people think of him. This guy want views by producing video which can be directed both ways (negative and positive). Just by going with the flow, which ever way he thinks he will get more views he directs his video that way.

The final thing I want finish this off by that most lazy a** people won't read this to find out the reality but in fact they will love to be sheep and waste their life watching this kind of useless videos.
Ad


Note: The points I've included above in his success might some people think that if I do that then it will be called deceiving people. Well, my friend you can't be successful over night by doing what normal people do. Nowadays most people online are just bunch of sheep and don't have commonsense. They will follow you and be one of your robots (you can call them pets as well if you want to, that's how they act really), and will spend hours watching your videos. You just need to feed them with garbage they want, doesn't matter if it's real or fake just need to be enjoyable. Well, sometimes they might get a bit crazy if some pokes them (with reality) but eventually dust will settle down and they will be like sheep as they were before. These (senseless sheep) are the reason why people deceive other people. Because everyone looking for way of making money, but those people can earning the most who can deceive. So why the f**ck people will stay straight forward, normal and real person?

Tuesday, 12 September 2017

This shows how rubbish is YouTubes copyright system


I wouldn't post this but to prove a point I had to. The video above has been uploaded on a channel called BellyStuffing24 but the video claimed to be someone else's, a channel called Alice Dowell. As Alice Dowell says "It really doesn't set a good example when you upload videos of somebody else, this is my video, now you can take it down please". She kindly asked the uploader to delete it but the channel owner didn't.
Ad

Alice Dowell also says "I reported it, but nothing happened". and she says again "I have but since it's no longer on my account they didn't do anything."

That means YouTube really doesn't care about small creators. But if you are a YouTuber one thing you might know that YouTube never deletes any video ID. When you go to your life time views you see many views from unidentified videos. That means the views were generated from a video which you have been deleted. So it seems like they do keep the ID safe plus video might be saved in their privet network somewhere, but they didn't give a sh*t to this case because she is not well known or someone that can go after them.

That kind of shows that all these copyright things is for people who are at the top. And the ordinary people can keep dreaming about their rights. By the way she (Alice Dowell) was so humble that she asked the uploader "Then please say in the description or in the title that it's my video", but the uploader turned out another scum bag. After stealing the full video (doing nothing, no editing) and getting the ad money (if it's been monitized) still can't give a simple credit.

Ad


Monday, 11 September 2017

People really after money


After watching the video you will find out that Pewdiepie (if don't know him then you must be living under the rock) said "nigger" during a video stream and the world is going crazy as if the end of the world already have started. I don't really get it, although he said he didn't mean it in a bad way but people are still going crazy.
Ad

You will find many people say many things and the just say it and don't mean it. Yes he is the number one on YouTube, so what he is a human being too. He swears so much in his videos. Swearing became so normal for many YouTubers that it became like slogan to some people and they don't literally mean it. As you can hear the guy in the video. He starts with swearing every video of his. So do you thing that he means what he says literally? Simple solution to these things is that don't watch his video if you are too sensitive.

Well,  the main point I actually tried to point out that the video game maker of the video he plays might try to take legal action. Because he is making lot of money playing the games which they made. I think these game makers are really greedy scum bags. They will beg people to play their games for free, if people don't give a shit about their games. But when they see someone is very popular they want to go after him so that they can get some extra juicy money for free.
Ad

The best example of greediness is TheFineBros. They tried to go after every single video on the YouTube who made react videos. But when people got fed up of his greediness and gang-up against them. They started loosing lot of subs and eventually they apologized and now they made almost all off their videos "CC" which means "Those videos are  accessible to YouTube users for use, even commercially, in their own videos via the YouTube Video Editor.". So from going after every YouTubers who makes react video and striking them for copyright infringement now saying come on take our videos and put it in your videos.

That kind of big change only possible when small individual come together. Otherwise these greedy scums at the top will always drag us down and they will become fat ass rich from someone else's hard earning money.

Ad



Saturday, 9 September 2017

Controlling motors with multiple light sensors

Well this post is just to share the sketch and I won't explain in detail. If you want to know why is that then you can read more on all Arduino posts page. Those people coming from the YouTube, you probably already know everything and you just want the sketch, so here it is.
The sketch
int photocellPin1 = 1;     // the cell and 10K pulldown are connected to a1
    int photocellReading1;     // the analog reading from the sensor divider
    int motor1 = 2;          // connect motor to pin D2

    int photocellPin2 = 2;  
    int photocellReading2;
    int motor2 = 3;

    void setup() {
      pinMode(motor1, OUTPUT);
      pinMode(motor2, OUTPUT);
      Serial.begin(9600);
    }
  
    void pca() {
      photocellReading1 = analogRead(photocellPin1);    
   
if (photocellReading1 <=500){
    digitalWrite(motor1, HIGH);
  }
  else {
    digitalWrite(motor1, LOW);
  }
}

    void pcb() {
      photocellReading2 = analogRead(photocellPin2);          
if (photocellReading2 <=500){
    digitalWrite(motor2, HIGH);
  }
  else {
    digitalWrite(motor2, LOW);
  }
}

void loop() {
pca();
pcb();
delay(50);
}

Sunday, 3 September 2017

This why you should stop sharing RT posts

After reading RT's legal disclaimer I've stopped sharing anything from RT although before reading that I used to share links to my family and friends and sometimes on this site as well, and thought it's a very good source of news and stuff. But after reading their disclaimer it became clear to me that these scumbags are not after informing people with good stuff, in fact they are greedy money hungry scumbags.
Ad

Let me share some of the things they said in their disclaimer. "Except as specifically permitted by the TOU, you may not copy or make any use of the Content or any portion thereof. Except as specifically permitted herein, you shall not use the Content, or the names of any individual participant in, or contributor to, the Content, or any variations or derivatives thereof, for any purpose, without RT’s prior written approval.
You may download copyrighted material for your private use only. Except as otherwise expressly permitted under Russian copyright law, no copying, redistribution, retransmission, publication or commercial exploitation of downloaded material will be permitted without the express permission of RT and the copyright owner."

By now I think it's clear to you as well that you can't do anything with their contents unless you use it for your self. I'm not sure who in the right mind would set this kind of rules. What the hell someone would do with their contents if they can't share with anyone? One question was going through my that if people are not allowed to redistribute (share) then why the hell do they always beg people to share their stuff? And this is the exact same question someone asked them.

And the Rt replied with " Feel free to share the video 🙂 The restriction is only for downloading the video and re-uploading it as if it's yours". More replies....

My question to RT is, first of all not a normal human being claim someone else's work as his own. And secondly you always put a giant fu***ng watermark in the middle of the videos. Let's say if someone downloads it and uploads it somewhere else, people will still be able to see your fu***g Raptly watermark from few hundred miles away, and you still say that guy can call the video/whatever as his own?
Ad

Another thing about RT's contents is that they will steal someone else's video and edit a bit and think that they've got the right to do so under fair use but other people don't have the right to use RT's video under fair use. What a nonsense and stupid mindset. As if they got the extra power to garb what ever they want and call it fair use and put their log and stuff and then claim the video of their own. And at the same time no one allowed to touch their contents. Are you feeling all right?

Lastly I want say to the wast majority of people who are working like a free slaves for them. Because of you these kind of scumbags are up in the sky. Why do you have to share their links? why don't you read their term&conditions. That's where these people clear things up. They take control of everything what you can do and can't. Sadly most people are like sheep to them, they make you do what they want to. Yet many people don't realize.


Ad