written by Antonius - roboticist, hardware hacker & low level hacker based in Indonesia
robohax.com - technological innovation for humanity
date : June 19 2018
https://medium.com/@ringlayer/forward-kinematics-calculation-for-robotic-arm-6393934f847Kinematics 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.
To calculate forward kinematic, we can use simple trigonometry or denavit hartenberg parameter or screw theory . In this example we are going to use simple trigonometry to calculate 2d forward kinematics for 1 DOF and 3d forward kinematics for 3 DOF robotic arm.
Calculating 2D Forward Kinematics for 1 DOF robot arm

For example here we have 1 dof robotic arm. link length is 10 cm. θ is 45°. The position of end effector on our cartesian coordinate (x, y) can be calculated easily using simple trigonometry.


cos θ = x / l
x = cos θ * l = cos 45° * 10 cm
sin θ = y / l
y = sin θ * l = sin 45° * 10 cm
Here is python 2d 1 dof forward kinematic solver:
#!/usr/bin/env python3'''robotic forward kinematics solvercoded by Antonius Ringlayer'''import mathdef solve_1dof_fk(_link, _degree): try: x = 0 y = 0 x = math.cos(math.radians(_degree)) * _link y = math.sin(math.radians(_degree)) * _link return x, y except: raisex, y = solve_1dof_fk(10, 45)print ("x=" + str(x) + " y=" + str(y))
Result:
$ ./2d_1dof_forward_kinematic_solver.py
x=7.0710678118654755 y=7.071067811865475
Position of end effector = p(7.07 cm, 7.07 cm)
Calculating 3D Forward Kinematics for 3 DOF robot arm
Calculating the position of the end effector on 3 dimensional space using trigonometry is not so hard.
For example here we have 3 dof robot arm :
Side view of robot arm :

Where : d2 is the height of second dof towards the floor, z is another dimension that we add to our cartesian geometry (the height of end effector from the floor), l1 = length of link 1, l2 = length of link 2, θ2 is d2 joint value, θ3 is d3 joint value.
Top View of Robot Arm :

Cartesian coordinate represented from the top view of our robotic arm. θ1 is d1 joint value.
We are going to calculate the position of end effector (E) at 3 dimensional spaces (x, y , z).
Known variables : °
l1 = l2 = 10 cm
d2 = 7 cm
θ1 = 60°
θ2 = 30°
θ3 = 140°
We mark some more degrees and lengths :

Steps:
since z = d2 + d3 — d6, first step is finding d3
step 1. finding d3
sin θ2 = d3 / l1
sin 30° = d3 / 10
d3 = sin 30° * 10 = 4.9 cm
Next step is finding d2 and d6 length. In order to get d2 and d6 length, we need to get more informations.
step 2. find θ4
180° = θ2 + 90° + θ4
θ4 = 180° — (30° + 90°) = 60°
step 3. find θ5
θ3 = θ4 + θ5
140° = 60° + θ5 , hence θ5 = 80°
Based on all informations that we obtained, we can redraw our picture as follow:

Step 6. finding d6 and z
Since we have θ5, finding d6 is simply child play.
cos θ5 = d6 / l2
cos 80° = d6 / 10
d6 = cos 80° * 10 = 1.7 cm
So we have below information:
z = 7 cm + 4.9 cm — 1.7 cm = 13,6 cm
Next we need to find x and y.

We figure out that x and y can be obtained if we got the hypotenuse length (d1).
We figure out from side view that d1 = d4 + d5
step 7. finding d4
cos θ2 = d4 / l1
d4 = cos 30° * 10 = 8.66 cm
step 8. finding d5 and d1
since we have θ5 = 80°
sin 80° = d5 / 10, so d5 = sin 80° * 10 = 9.85 cm.
d1 = d4 + d5 = 8.66 + 9.85 = 18.51 cm
Back again to our top view, we figure out that we have collected enough information to find x and y.

cos θ1 = x / d1
cos 60° = x / 18.51
x = cos 60° * 18.51 = 9.25 cm
sin 60° = y / 18.51 , y = sin 60° * 18.51 = 16.03 cm
Finally we find that p(x,y,z) = p(9.25 , 16.03, 13,6)

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.
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.
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.
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.
Solar Powered Electrical Generator. This generator created by Antonius (w1sdom). This product created for his startup Robotsoft in 2020.
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
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 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)
I built this robot in 2014. It is a shy robot that is afraid of humans. I used 3 ultrasonic sensors.
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) - build by Antonius Robotsoft (w1sdom).
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/
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).
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.
This post was taken from my old blog post in 2015. Haxtronic was my first generation hacker robot that I built from 2013-2015
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.
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.
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.
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.
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.
Technical guide on convolutional operations behind convolutional neural network.
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.
This tutorial is about motor dc control using uln2803 ic. Taken from my old blog post.
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.
Robohax was founded by Antonius. Antonius (w1sdom) is a roboticist, technology inventor, hardware hacker, low level hacker & electronic engineer based in Indonesia.
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).
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).
Completed robots, electronics, hacking gadgets and other hardware projects.
Prototypes and experimental builds currently in development.
Demos, tutorials and project walkthroughs.
Technical write-ups on robotics, electronics, hacking gadgets and more.
Profile, disciplines and links.