Merry Christmas
TECHNOLOGICAL INNOVATION FOR HUMANITY

Infrared Sensor to Detect Range

written by Antonius 
roboticist - hardware hacker - low level hacker based in Indonesia
robohax.com - technological innovation for humanity
date : 15-06-2014
https://sw0rdm4n.wordpress.com/2014/06/23/infrared-sensor-to-detect-range-and-kinect-actuator/

This is simple and basic guide to detect object using infrared sensor. Hardware requirements : – an arduino or any arduino compatible board ( here I use sduino because it has enough pins to control 2 motor servos) – an infrared sensor – jumper wires (any color doesn’t matter) – 2 motor servo as kinetic actuator (front leg and rear leg).

First, plug jumper wires to infrared sensor, here we use sharp infrared sensor. Actually jumper wires color doesn’t matter, but to make it easy, we’ll plug red for 5v, black for ground and yellow for analog input :

Here we plug red jumper wires to 5v pin on sduino, black jumper wires to ground pin (ground is minus), plug yellow jumper to A5 (analog input pin 5). Plug 2 Servos Next we’ll be plugin 2 motor servos directly to our board using jumper wires, Plug the first motor servo for front leg :

for analog input we’ll be using pin number 9, for voltage we use 3,3v pin (actually to control a motor servo we can also use 3,3 v pin beside using 5v pin), next we plug the last jumper wire for ground. After plug the first motor, we plug the second motor (rear leg) :

for analog input, we plug jumper wire to pin 0, for voltage we plug red jumper wire to 5v pin, and the last jumper wire, plug it to ground pin. Actually colors of jumper wire doesn’t matter as long as the arrangement of cable that comes from motor servo plugged correctly with the pins on arduino. Programming The final step is uploading a program to use ir sensor, here’s our code for arduino ide :

/*
simple kinetic actuator using infrared
made by : Antonius (sw0rdm4n)
twitter :  @sw0rdm4n
http://www.ringlayer.net - https://sw0rdm4n.wordpress.com - http://sw0rdm4n.blogspot.com - http://www.indonesianbacktrack.or.id
*/
#include <Servo.h>
int sensorval;
int pos_front_leg = 0;
int pos_rear_leg = 0;
Servo front_leg, rear_leg;
void setup()
{
             front_leg.attach(9);
             rear_leg.attach(0);
}
void loop()
{
              sensorval = analogRead(5);
              if ((sensorval > 200) && (sensorval <300)) {
                          if (pos_rear_leg == 0) {
                                rear_leg.write(180);
                                pos_rear_leg = 180;
                          }
                          else {
                                rear_leg.write(0);
                                 pos_rear_leg = 0;
                          }
             }
             else if (sensorval > 300) {
                         if (pos_front_leg == 0) {
                               front_leg.write(180);
                               pos_front_leg = 180;
                         }
                         else {
                               front_leg.write(0);
                               pos_front_leg = 0;
                         }
             }
             delay(500);
}

Upload that code to arduino board. To test we’ll be using 6 x 1,5 v battery :

On successfull, if we put any object near the infrared at sensor val range 201-299 the rear leg servo will be moving, if we put any object at sensor val range above 300 the front leg servo will be moving.

 

Productions (Total : 5)

Inventions Robots Electronics Gadgets Circuit Design AI IOT Electrical
RoboMall - A Teleoperated Mall Robot by Robotsoft
inventions
RoboMall - A Teleoperated Mall Robot by Robotsoft

RoboMall was developed by Antonius (w1sdom) in 2023, The robot was designed to be operated in a mall. The purpose is that mall visitors doesn't need to visit mall directly, instead, they can use this robot to stroll in a mall and if they deposit in RoboMall wallet system they can buy things on mall, then the goods will be delivered by couriers.

iot
Robotsoft LightBox - IOT Lightning

Robotsoft LightBox is a solar powered outdoor lighting. Features : water proof, controlled by voice & android application. This product was created by Antonius (w1sdom). This product was created for his startup Robotsoft in 2020.

iot
Robotsoft FloorLight - IOT Lightning

Robotsoft FloorLight is a solar powered outdoor lighting. Features : water proof, controlled by voice & android application. This product was created by Antonius (w1sdom). This product was created for his startup Robotsoft in 2020.

iot
Robotsoft Torch - IOT Lightning

Robotsoft Torch is a solar powered outdoor lighting. Features : water proof, controlled by voice & android application. This product was created by Antonius (w1sdom). This product was created for his startup Robotsoft in 2020.

electrical
Robotsoft Solar - Solar Powered Electrical Generator

Solar Powered Electrical Generator. This generator created by Antonius (w1sdom). This product created for his startup Robotsoft in 2020.

Show All

Prototypes (Total : 6)

Inventions Robots Electronics Gadgets Circuit Design AI IOT Electrical
INVENTIONS PROTOTYPE
Haxtronic - My First Generation Hacker Robot - Developed in 2014

The first hacker robot that I created. This robot was developed in 2014. Some demo videos were posted in Youtube around 2016. This robot can explains about low level exploitation techniques. Robot skills : can hack wifi (wpa cracking using aircrack), evil twin, wifi deauth, arp cache poisoning. My old video channel --> https://www.youtube.com/@antoniusringlayer/videos

ROBOTS PROTOTYPE
Inem Robot

I planned to develop a spy robot, but this robot was too big. The chassis was created using metals. Developed in 2017, posted in youtube around 2019. Developed by Antonius (w1sdom)

Airhax Wireless Network Auditor Device
HACKER GADGET PROTOTYPE
Airhax Wireless Network Auditor Device

Airhax is a wireless network auditor gadget. This device was created in 2015. This gadget functions : wifi cracking, evil twin, wifi deauth, arp poisoning. Developed by Antonius (w1sdom / sw0rdm4n / ev1lut10n / robotsoft)

ROBOTS PROTOTYPE
Ultrasonic Robot

I built this robot in 2014. It is a shy robot that is afraid of humans. I used 3 ultrasonic sensors.

ROBOTS PROTOTYPE
Giant Robot

A large-scale prototype robot powered by a mini PC and an Arduino, built as a personal project rather than a commercial product. At first, I planned to equip it with high-torque servos and an airsoft gun, but I realized that could be dangerous, so I scrapped the idea. Real hacking should be harmless. Build 2017 - by Prof. Antonius Robotsoft

Various Robots (finished and unfinished)
ROBOTS PROTOTYPE
Various Robots (finished and unfinished)

Various Robots (finished and unfinished) - build by Antonius Robotsoft (w1sdom).

Show All

Videos (Total : 0)

Show All

Blog (Total : 25)

Inventions Robotics Electronics Math & Physics Artificial Intelligence Electrical Computer >> more
ELECTRONICS
Identifying Resistor Value

A short guide on identifying resistor value. This post was taken from my old blog post : https://sw0rdm4n.wordpress.com/2014/12/06/identifying-resistor-value/

ELECTRONICS
Controlling Many Servo(s) Using IC TLC5940

Tlc5940 is a 16 channel led driver. Since this IC has pwm control ability we can use this IC for controlling up to 16 servo(s).

MATHEMATICS-PHYSICS
Forward Kinematics Calculation for Robotic Arm

Kinematics is a branch of mathematics, physics and classic mechanical engineering. There are 2 mostly used kinematics in robotic field, they are : forward kinematics and inverse kinematics. Forward kinematics is frequently used to calculate the position of end effector when we know the degree value of each joint, meanwhile inverse kinematics is used to compute the degree of each joint when we know the position of the end effector.

ROBOTICS
Haxtronic Robot Development in 2013-2015

This post was taken from my old blog post in 2015. Haxtronic was my first generation hacker robot that I built from 2013-2015

MATHEMATICS-PHYSICS
Matrix Determinant - Laplace and Sarrus Method

An introduction to matrix determinants in linear algebra, explaining how to calculate determinants using Sarrus' rule and Laplace expansion through step-by-step mathematical examples.

MATHEMATICS-PHYSICS
Regular Matrix Inverse and Pseudoinverse Using Singular Value Decomposition (SVD)

A step-by-step guide to calculating matrix inverses and Moore-Penrose pseudoinverses using the adjugate method and Singular Value Decomposition (SVD), with manual calculations, Python NumPy implementations, and applications in robotic inverse kinematics.

MATHEMATICS-PHYSICS
Calculus 3 - First Order Partial Derivatives

An introduction to first-order partial derivatives in multivariable calculus, featuring step-by-step calculations for functions of two and three variables and their relevance to Jacobian matrices and robotic inverse kinematics.

ARTIFICIAL INTELLIGENCE
Convolutional Neural Network for Object Recognition and Detection

An exploration of Convolutional Neural Networks (CNNs) for object recognition and detection, covering mathematical foundations, feature extraction, activation functions, and popular deep learning architectures such as LeNet, VGG16, ResNet, and RetinaNet, with practical Python and Keras examples.

ARTIFICIAL INTELLIGENCE
Cardboard Box Detection and Localization using RetinaNet (Keras)

In this guide, we are going to train a model using keras retinanet to detect and localize a custom object : “cardboard box” from the image.

ARTIFICIAL INTELLIGENCE
Convolutional Operation in Convolutional Neural Network

Technical guide on convolutional operations behind convolutional neural network.

ELECTRONICS
Switch Based on Contact (SPST, SPDT, DPST, DPDT)

An introduction to four common types of electrical switches (SPST, SPDT, DPST, and DPDT), explaining their contact configurations, operating principles, and practical applications through simple diagrams and real-world examples.

ELECTRONICS
Motor DC Control (1 direction only) Using ULN2803 (Darlington Array Transistor)

This tutorial is about motor dc control using uln2803 ic. Taken from my old blog post.

Show All
ABOUT
Technological Innovation for Humanity

Robohax is dedicated to provide creative, innovative technological innovations that benefits humanity.

Our projects range from autonomous robots, electronic devices and IoT devices for commercial / business to custom robots & hacking gadgets for physical penetration testing.

DISCIPLINES
What We Do
  • Robotics for Business
  • Technology inventions
  • IoT Devices
  • Electronics Prototyping
  • Robotics for Penetration Testing
  • Robotics for Exploitation
  • Custom Hacking Gadgets
  • Hardware Reverse Engineering
THE FOUNDER

Robohax was founded by Antonius. Antonius (w1sdom) is a roboticist, technology inventor, hardware hacker, low level hacker & electronic engineer based in Indonesia.

INVENTIONS

Robomall (2023)
RoboHax is a teleoperated robot that allows shoppers to visit shopping malls without having to be there in person. Users can remotely navigate the mall, browse storefronts, explore products, and shop as if they were physically there. To make purchases, users can add funds to their RoboWallet, and their purchases will be delivered to their doorstep through an on-demand courier service.

Haxtronic (2014)
The concept behind the world's first hacking robot, designed to perform WPA cracking, Evil Twin Wi-Fi attacks, and Wi-Fi deauthentication. The robot is also equipped with Artificial Narrow Intelligence (ANI) specialized in cybersecurity, enabling it to explain low-level exploitation concepts and techniques. Natural language processing is powered by the Natural Language Toolkit (NLTK).

NOTABLE RECORDS

The first hacker from Indonesia who confirmed to have written a paper for Phrack.
Paper : UAF Exploitation in The Sheaves Era

This paper presents a novel heap-based use-after-free exploitation technique for the Linux 7.0 kernel, developed by Antonius (w1sdom).

Sitemap

PRODUCTIONS
Finished Projects

Completed robots, electronics, hacking gadgets and other hardware projects.

PROTOTYPES
Work in Progress

Prototypes and experimental builds currently in development.

VIDEOS
Video Content

Demos, tutorials and project walkthroughs.

BLOG
Articles & Write-ups

Technical write-ups on robotics, electronics, hacking gadgets and more.

ABOUT
About RoboHax

Profile, disciplines and links.

Contact

Pm me on
My Linkedin

Order

You want a custom robot or gadget ?
Pm me on
My Linkedin

Home Productions Prototypes Videos Blog Order About Contact
RoboHax ScorpioGuard BlueDragonSec