This is my demo code on how to use the XML-RPC to communicate with Universal Robots (UR). UR is the client and PC is the server that runs the Python script. On the demo code, the script only changes the x coordinate. Enable remote control on the robot side. You must change the server IPContinue reading “XML-RPC communication with Universal Robots”
Tag Archives: code
I found this EEPROM
I found this tiny EEPROM from an old random board. Soldered it on copper board to use it as a through-hole component and to use on the breadboard The EEPROM is 24C02N. It uses i2C to communicate and is relatively easy to read/write. I used Arduino Nano for that. Some functions I wrote: EEPROM memoryContinue reading “I found this EEPROM”
Long-exposure photography in another way
The traditional way to make long-exposure photography is to take photos with a long-duration shutter speed to sharply capture the stationary elements of images while blurring, smearing, or obscuring the moving elements. Long-exposure photography captures one element that conventional photography does not: an extended period of time. (1) One day I watched Scott Manley videoContinue reading “Long-exposure photography in another way”
Continuous image capture from webcam
As part of an online course, I currently take “Computer Vision with Embedded Machine Learning” where is need to collect images to make the dataset. I modified the original code so I can use my regular Linux box and webcam, not Raspberry Pi. The programme counts down and saves images every 7 seconds. That isContinue reading “Continuous image capture from webcam”
Spurkfun Edge and Camera
My Arduino settings and code to use Sparkfun Edge with the camera module. Hardware Sparkfun Edge (Input only 3.3V.) Himax CMOS Imaging Camera – HM01B0 Wemos CH340G USB to serial (Make sure it output is 3.3V!) In Arduino IDE Add Boards Manager URL: https://raw.githubusercontent.com/sparkfun/Arduino_Boards/master/IDE_Board_Manager/package_sparkfun_index.json Install SparkFun Apollo3 Boards package Install SparkFun Himax HM01B0 Cameras library Settings Upload sketch PressContinue reading “Spurkfun Edge and Camera”
Python script to generate ridge maps
Someone has created a python library to generate ridge maps. All my experiments and code are in this Colab notebook.
Meedia-tsõõr
Tsõõri kujuline arvuti sisesndseade. Praegu on seadistatud see käituma nagu hiire kerimis nupp. Arduino Pro Micro saab programmeerida matkima kõiki USB seadmeid. Nagu see oleks hiir, klaviatuur või mõni muu HID tüüpi USB seade. Kood asub GitHubis. Eraldi on loodud teek pöördkooderi (Rotary Encoder) jaoks.
Serial Plotter code
This is my standalone serial plotter. I like to use Arduino, Esp866 etc. and then i started to learn python and decided to make something useful. Something that i will use and what is missing now for me. Although Arduino Ide contains serial plotter. It is little bit different. Written in python 3 and Qt5.Continue reading “Serial Plotter code”
C vs. C++: Bubble sort
I have identical bubble sort algorithm in C and C++. Same data and same computer. Experiment shows that C is twice as slow as C ++. In C it takes 124 processor clicks or 0.000124 sec. In C++ it takes 66 processor clicks or 0.000066 sec. C Bubble sort code: C++ Bubble sort code: https://github.com/taunoe/cpp-examples/tree/master/Sorting-algorithms/Bubble-sort