Generated by All in One SEO v5.0.0.1, this is an llms.txt file, used by LLMs to index the site. # Bajdi electronics Hobby electronics website ## Sitemaps - [XML Sitemap](https://bajdi.com/sitemap.xml): Contains all public & indexable URLs for this website. ## Posts - [Controlling a servo without the delay function](https://bajdi.com/controlling-a-servo-without-the-delay-function/) - Testing 3 DOF gripper from Bajdi on Vimeo. I started writing a sketch to control my 3 DOF gripper, it has 3 servos controlled by an Arduino. All the servo example sketches that I have seen use the delay function. You need to have a delay after sending the servo the command to move to - [Arduino rc car part 2: controlling the servo](https://bajdi.com/arduino-rc-car-part-2-controlling-the-servo/) - Fiddled some more with my old Nikko rc car, last time I managed to control the main motor with a L298n motor controller board. Since my last post about it I found out that the servo that originally controlled the front wheels is broken. So I needed to find a solution for that. I had - [Dimming power leds with Arduino](https://bajdi.com/dimming-power-leds-with-arduino/) - I bought a couple of 3W power leds on Ebay recently. These 3 watt power leds have a forward voltage of 3,4V and need 700mA current to shine at their maximum rating. A led is a semiconductor and needs current limiting to make it work. With small leds you just put a small resistor in - [Playing with Dagu Rover 5 with gripper](https://bajdi.com/playing-with-dagu-rover-5-with-gripper/) - Playing with Dagu Rover and gripper from Bajdi on Vimeo. Finally got around to make a sketch to remote control my Rover 5 and gripper. I started with a sketch to control just the gripper with a 2 axis joystick and 2 buttons to open and close the gripper. While testing that sketch I made - [Designing PCB's in Eagle](https://bajdi.com/designing-pcbs-in-eagle/) - Not have much time to play with Arduino or robots the last days. But I have been busy designing a couple of PCB's in Eagle. Eagle is a software program to draw schematics and then turn them in to PCB's. You can then sent the drawing of the PCB to a company like Iteadstudio that - [Torobot 32 channel servo controller](https://bajdi.com/torobot-32-channel-servo-controller/) - I bought another "toy", a 32 channel servo controller made by the Chinese company Torobot. It's a small PCB with a dedicated micro controller that can control up to 32 servos. There is not much information to be found about it. There is an online manual available but it was not of much use to - [My Arduino Nano undershield](https://bajdi.com/my-arduino-nano-undershield/) - Arduino Nano undershield powering 10 servos from Bajdi on Vimeo. My Arduino Nano undershields arrived this week from Iteadstudio in Shenzen, China. I received 12 PCB's, but I only have one Nano, anyone want an undershield for your Nano? My undershield has a 3A 5V LM2576 switchmode regulator to power the Nano. All the pins - [Bajduino: designing my own Arduinos](https://bajdi.com/bajduino-designing-my-own-arduinos/) - After successfully designing and soldering my first PCB it's time to take things a little further and design my own Arduino, the Bajduino :p. I've bought all the necessary electronic components to make a lot of boards. So now I only need to finish my PCB designs and have them made by Seeedstudio or Iteadstudio - [Volga: the line following robot](https://bajdi.com/volga-the-line-following-robot/) - My line following robot from Bajdi on Vimeo. A couple of months ago I started building a line following robot, I named it Volga :) The plan was to draw a small track and plot it out on a large piece of paper and make a robot that could follow the track. In this case - [Arduino rc car: it works :)](https://bajdi.com/arduino-rc-car-it-works/) - Arduino rc car from Bajdi on Vimeo. I finally made my old Nikko RC car work again :) It wasn't easy to be honest, there were several obstacles along the way. Since my last post I had found out that the L298 H-bridge was not powerful enough to drive the motor. It would quickly - [Bajduino 1284](https://bajdi.com/bajduino-1284/) - I'm back home after a 4 week vacation in Thailand. While I was there I ordered some more components from Tayda Electronics and had them delivered to my hotel. This time I received my order in 3 days instead of the 2 - 3 weeks it normally takes for shipments from Asia to Belgium. I - [I2C communication between 2 arduinos](https://bajdi.com/i2c-communication-between-2-arduinos/) - I now have a big collection of various Arduinos so I wanted to try and let them communicate with each other. There are several options to let 2 Arduinos communicate with each other. All Arduinos have serial, I2C and SPI busses which can be used for communication. The easiest way to get them to communicate - [Rover 5 with digital compass](https://bajdi.com/rover-5-with-digital-compass/) - Some time ago I bought a cheap 9DOF board on Ebay. The board has 3 sensors, an ADXL345 accelerometer, HMC5883L magnetometer and an ITG3200 gyroscope. All 3 sensors are of the digital kind and use the I2C bus to communicate. These sensors need a voltage of 3,3V to work, luckily the board has an onboard - [Bajduino 3A: my power duino](https://bajdi.com/bajduino-3a-my-power-duino/) - A couple of months ago I started playing with Eagle. Something I had always wanted to try but never had the time or courage to get started. After playing with Arduino's and a Dagu Red Back Spider I had the idea to design a board with the ATmega328P-PU and a powerful 3A 5V switchmode regulator. - [Bi-directional logic level converter](https://bajdi.com/bi-directional-logic-level-converter/) - I have been playing with my self built Arduino's the last weeks. One of my designs is a small (5x5cm) board with an ATmega328P-PU and a header for a nRF24L01 wireless module. I named it the Bajduino 328RF24 :) Since the nRF24L01 modules work at 3,3V I decided to let the ATmega run @ 3,3V. - [Serial communication with the EasyTransfer library](https://bajdi.com/serial-communication-with-the-easytransfer-library/) - While I was searching for information on how to establish communication between 2 Arduino's over the I2C bus I stumbled on Bill Porters website. He has written an Arduino library for easy serial communication between 2 Arduino's. And someone else has made a version of the same library for easy I2C communication. The EasyTransfer serial - [Building a hexapod: Bajdupod 9G](https://bajdi.com/building-a-hexapod-bajdupod-9g/) - When I started out with Arduino I stumbled on the letsmakerobots.com website. I found lots of robot projects on LMR, it's amazing what people can make at home today. One particular kind of robots sparkled my interest, hexapods. Controlling and powering lots of servos looked quite difficult to me so I first started with my - [Bajdupod 9G: it walks :)](https://bajdi.com/bajdupod-9g-it-walks/) - I have spent a lot of time on my little hexapod the last couple of days. I have finished writing the code for the basic walking gaits, forward/backward/left and right. This is the walking gait I have come up with: FORWARD walking gait knee up 1,3,5 knee down 2,4,6 hip forward 1,3,5 hip backward 2,4,6 - [Bajdupod 9G: now with RGB leds](https://bajdi.com/bajdupod-9g-now-with-rgb-leds/) - Small update on my hexapod: The past days I fiddled some more with my hexapod sketch. It now listens pretty well to my remote control. I first had some issues with controlling the servos. My code had some small errors, several walking gaits would be running at the same time causing the servos to act - [Sweeping servos with Arduino](https://bajdi.com/sweeping-servos-with-arduino/) - Some time ago I wrote a sketch to control a servo with a potentiometer without using the delay function, you can find it here. This time I wanted to move or sweep a servo between 2 positions. The Arduino IDE comes with a sweep example, you can find it under File -> Examples -> Servo - [Obstacle avoiding robot made from cheap parts](https://bajdi.com/obstacle-avoiding-robot-made-from-cheap-parts/) - So I have made another robot. It is a cheap small simple robot, most of the parts were bought on Ebay. Ebay has become my primary source for robot parts. So much stuff these days is made in China. And Ebay is a great place to buy it. For the chassis I used a plastic - [Trying out the new Seeedstudio EL shield](https://bajdi.com/trying-out-the-new-seeedstudio-el-shield/) - Beginning of this month I entered Seeedstudios give-away, and I won an EL-shield :) You can find more information about the give-away on the Seeedstudio blog. I received the package this week only 2 weeks after it had been shipped. Not bad for a package that was sent all the way from China to Belgium. - [Fun sensor: the WiiCamera](https://bajdi.com/fun-sensor-the-wiicamera/) - I spent to much time on LetsMakeRobots. LMR not only has project pages and a forum about robots but it also has a shoutbox. It's a place where robot builders of all ages and locations come together to talk about robots and electronics. One of the people I have met on the shoutbox is "Chris - [Something different: a crash robot](https://bajdi.com/something-different-a-crash-robot/) - The first type of robot most people make is an obstacle avoiding robot. You take a couple of motors with a motor controller, an ultrasonic or infrared range finder sensor and add a micro controller and you have a simple robot. I have made a couple of these robots myself. This time I wanted to - [Follow the leader: robot style](https://bajdi.com/follow-the-leader-robot-style/) - I've been playing with the WiiCamera the last days. After I had successfully written a sketch to track an IR light source I put the WiiCamera on my small Ebay-bot. The goal was that the robot would follow the IR light source. It was quite easy to program. I tried out my sketch by holding - [Sending structs with nRF24L01 modules and the RF24 library](https://bajdi.com/sending-structs-with-nrf24l01-modules-and-the-rf24-library/) - Beginning of this year I bought my first nRF24L01 wireless modules. I did not have a clue back then how they worked and if I was going to get them to work with Arduino. I had found a couple of libraries for the modules so I thought of giving it a try. I spent hours - [Made some lipo to robot connectors](https://bajdi.com/made-some-lipo-to-robot-connectors/) - All the robots I have built so far have been powered by Lipo batteries. I chose Lipo batteries because they are very powerful (they can discharge very fast) and pretty compact for their capacity. That's why lipo batteries are used in remote controlled scale helicopters, airplanes, cars, ... Lipos don't cost that much any more, - [MAG3110 magnetometer and Arduino](https://bajdi.com/mag3110-magnetometer-and-arduino/) - I got this MAG3110 magnetometer on Ebay, it came on a small break out board. This is not a sensor you want to solder by hand, it comes in a tiny 10 pin DFN package. The MAG3110 is a three axis digital magnetometer made by Freescale. The readings of a magnetometer can be used to - [Building another hexapod: Bajdupod 996R](https://bajdi.com/building-another-hexapod-bajdupod-996r/) - I've started building my second hexapod, Bajdupod 996R. The 996R part of the name comes from the servos I'm using, I bought 30 Towardpro MG996R servos on Ebay many months ago. I only need 18 for this hexapod so I have some spare servos. Always a good idea, I destroyed several servos while building my - [Cheap pressure sensor: piezo element](https://bajdi.com/cheap-pressure-sensor-piezo-element/) - I've been thinking of modifying the gripper on my Rover 5. The 2 arms that close to pick up things are pretty small. I was thinking of attaching a small plate on both sides. This would make it easier to pick up things. And the plates would give me a good surface to mount a - [Open Bench Logic Sniffer](https://bajdi.com/open-bench-logic-sniffer/) - I bought me an Open Bench Logic Sniffer for Christmas. And I've finally found some time to try it out. I've bought to many toys to play with the last months :) I bought it from Seeedstudio for 50$, but that didn't include the probe cable. That cost another 6$, very cheap but I had - [Bajdupod 996R trouble](https://bajdi.com/bajdupod-996r-trouble/) - I've been working on my hexapod, and I've spent the last weeks struggling with inverse kinematics. I found a great explanation on this website. I started by measuring the parts of the legs. The legs are made of 3 parts, coxa, femur and tibia. I then copied quite a bit of code from the sketch - [My 15$ GPS module](https://bajdi.com/my-15-gps-module/) - About a month ago I was browsing Dangerous prototypes and read about this cheap GPS hack. Emeryth had found out that the cheapest GPS modules on Ebay could be used with a micro controller. The Ublox PCI-5S modules can be found on Ebay for less then 10$. Add an antenna for about 5$ and you - [Bajdupod 996R: first steps](https://bajdi.com/bajdupod-996r-first-steps/) - After blowing up a couple of expensive 8A UBECs I think I have found a solution to powering the 18 servos. I am now using 3 8A UBECs, each UBEC powers 2 legs / 6 servos. I have written a basic walking gait to move the hexapod forward, backward, left and right. I'm using - [Bajdupod 996R: remote control and smoothness](https://bajdi.com/bajdupod-996r-remote-control-and-smoothness/) - Was snowed in today so I got to play with my hexapod all day :) I've changed the way I move the servos. The code now moves the servos in little steps. Makes the hexapod walk a lot smoother. I've added a second micro controller, an ATmega328 with a wireless nRF24L01 module. I have quite - [Re:load the adjustable constant-current load](https://bajdi.com/reload-the-adjustable-constant-current-load/) - Re:load is an adjustable constant current load. I bought it on Tindie, cost me 15$ plus shipping. The Re:load is designed by Arachnid labs in the UK. It is sold as a kit, so you'll have to solder it yourself. This is what I received: The parts were nicely packaged in an anti static bag. - [Cheap 128x64 graphic lcd (12864zw)](https://bajdi.com/cheap-128x64-graphic-lcd-12864zw/) - I bought me a cheap 128x64 graphic lcd on Ebay, cost me less then 7€ including shipping. It didn't come with a datasheet or any instructions. After some googling, reading lots of websites and trying out a couple of different Arduino libraries I got it to work :) I first needed to find out how - [Bajdupod 996R: improved code :)](https://bajdi.com/bajdupod-996r-improved-code/) - Spent a lot of time working on the code of my Arduino hexapod this week. I reprogrammed the way I move the servos. The code is now based on a timer (millis) instead of using a for loop and the delay function. I can now control the speed of the walking gait. I also added - [Bajdupod 996R: the saga continues...](https://bajdi.com/bajdupod-996r-the-saga-continues/) - I think I have finally solved all the bugs in my hexapod code, well at least the walking gait part of the code. The servos now move in 15 steps from one position to the other. The time between these steps determines how fast the hexapod walks. I can change the speed with my remote - [Blinking leds with a 74HC595 shift register](https://bajdi.com/blinking-leds-with-a-74hc595-shift-register/) - I needed to take a break from working on my hexapod. So I decided to go back to basics, blinking leds :D The first Arduino sketch most people try out must be the blink example sketch. It blinks one led, and uses only one pin. If you want to blink lots of leds you might - [Nano undershield revision 2](https://bajdi.com/nano-undershield-revision-2/) - Almost a year ago I designed my first PCB. It was a small 50x50mm PCB that acts as an undershield for an Arduino Nano. I designed it because the Arduino Nano has a tiny 5V voltage regulator. To not overheat the regulator you can not draw more then 200-300mA from it depending on the input - [Bluetooth remote control](https://bajdi.com/bluetooth-remote-control/) - I've bought me a HC05 bluetooth module on Ebay. And I also recently got me a Samsung smartphone. When you trow an Arduino robot in the mix you get the above video :) The HC05 bluetooth modules seem to be very popular. You can easily find them on Ebay. I bought the module on a - [New chassis for my hexapod :)](https://bajdi.com/new-chassis-for-my-hexapod/) - Bajdupod 996R: Arduino hexapod from Bajdi on Vimeo. I finally finished the design of my hexapod chassis and had it laser cut this week. I had 3 plates laser cut in acrylic. The original chassis was a bit to small to fit everything. So I designed a bigger chassis and went for 3 decks. This - [Added some leds to my hexapod](https://bajdi.com/added-some-leds-to-my-hexapod/) - I've added the top chassis plate to my hexapod. I glued 16 blue leds to it and then soldered wires to the leds. The wires are connected to 2 74HC595 shift registers. My hexapod needed some sensors so I mounted 3 small servos to it. One in the bottom plate that sweeps a SRF06 ultrasonic - [Arduino pwm frequency](https://bajdi.com/arduino-pwm-frequency/) - While playing with a couple of H-bridges one motor had more torque then the other. Although the voltage going to both motors was the same. The reason was that I was using 2 pins with different pwm frequencies. I had read that not all the pwm pins had the same frequency but couldn't find a - [L9110 H-bridge module](https://bajdi.com/l9110-h-bridge-module/) - I bought another small motor driver, this time a module with 2 L91110 H-bridge chips. These dual L9110 H-bridge modules can be found for 3-4$ on Ebay or from Chinese webshops. The module has 2 L9110 IC's, so it can control 2 DC motors or 1 stepper motor. You can download the datasheet of the - [Non blocking code for the 28BYJ-48 stepper motor](https://bajdi.com/non-blocking-code-for-the-28byj-48-stepper-motor/) - One of the first things I tried when I started playing with Arduino was running a stepper motor. As I had bought 2 small 28BYJ-48 stepper motors with my first Arduino. Since I knew very little about programming I just used the Arduino stepper library. The library works but it's not that usefull, it is - [My arduino hexapod: Bajdupod 996R it's finished :)](https://bajdi.com/my-arduino-hexapod-bajdupod-996r-its-finished/) - Bajdupod 996R: Arduino hexapod from Bajdi on Vimeo. This afternoon I made another video of my hexapod. The last weeks I've written some more code for it. It now has an autonomous mode and a remote controlled mode. In the autonomous mode it can track an IR light source using the WiiCamera sensor and avoid - [LCsoft VS1053 MP3 module](https://bajdi.com/lcsoft-vs1053-mp3-module/) - There are several MP3 shields available for Arduino. Most of them are based on the VLSI VS1053 chip. I'm not a fan of the shield system as it limits you which pin on the shield connects to the micro controller. Also my own "Bajduinos" are not shield compatible. Thankfully there are some break out boards - [Arduino MP3 alarm clock](https://bajdi.com/arduino-mp3-alarm-clock/) - After finishing my hexapod I needed another project :) Over the last year I have bought numerous small break out boards on Ebay. So I came up with the idea to make an Arduino MP3 alarm clock. The idea is simple, an LCD that shows the date and time. A couple of buttons to set - [Bob the biped](https://bajdi.com/bob-the-biped/) - So I've started a new robot project :) A while ago a cute little biped robot was posted on Letsmakerobots.com. And so Bob the biped was born. The cool thing about Bob is that everyone can 3D print his own. The files needed to print Bob can be found on Thingiverse. To built your own - [Building a self balancing bot](https://bajdi.com/building-a-self-balancing-bot/) - I bought most of the parts to built a self balancing bot many months ago. This time I didn't use cheap Chinese stuff. I actually bought Pololu parts from a local shop. Pololu has a nice range of motors and motor controllers. I wanted to keep the bot small so I used the micro metal - [Adding encoders to those cheap yellow motors](https://bajdi.com/adding-encoders-to-those-cheap-yellow-motors/) - My little Ebay bot is powered by 2 cheap DC geared motors. These yellow geared DC motors are very popular. Lots of cheap robot kits use them. I bought mine on Ebay and used double sided tape to stick them to the chassis of the robot. I had one annoying problem with the cheapo motors. - [2.2 inch TFT display](https://bajdi.com/2-2-inch-tft-display/) - Bought a TFT display from Electrodragon. Electrodragon sells 2 versions, a 1.8" and a 2.2" version. I got the 2.2 inch version, it costs only 7.2$. It's a colour (QVGA) display with 240x320 pixels. The display uses an ILI9341 driver chip. I found the datasheet of the ILI9341 here. The chip works at 3.3V, so - [Rover 5: encoder speed control](https://bajdi.com/rover-5-encoder-speed-control/) - I've dusted of my Dagu Rover 5 :) While I've had my Rover 5 for almost 2 years I've never really used the encoders. Unfortunately my Rover 5 was delivered with an encoder that didn't work right. So I decided to have a look at it and try to fix it. It turned out to - [Arduino 28BYJ-48 stepperbot](https://bajdi.com/arduino-28byj-48-stepperbot/) - Chris from Rocket Brand Studios sent me 4 wheels that fit the little 28BYJ-48 stepper motors a couple of months ago. I only had 2 steppers so I ordered 2 more motors and control boards on Ebay. Cost me less then 2€ a piece, and that's for the stepper motor and control board. I wanted - [Dagu service droid: the start](https://bajdi.com/dagu-service-droid-the-start/) - When I saw the offer on letsmakerobots.com to buy a new robot kit from Dagu at a special price I didn't hesitate... Dagu's new robot kit is the "service droid". It's a kit that can be mounted on the popular Rover 5 platform. The service droid is made from hundreds of laser cut acrylic parts. - [DFrobot insectbot](https://bajdi.com/dfrobot-insectbot/) - DFrobot sent me their latest robot kit, the insectbot kit. It's a small 2 servo robot that's easy to built and program. The kit is ideal for people who want to built their first robot. It comes with an Arduino compatible micro controller. The insectbot kit is sold for less then 30$, so it doesn't - [Pololu Wixel and Arduino](https://bajdi.com/pololu-wixel-and-arduino/) - I've bought me a pair of Pololu Wixels during the black Friday sale last month. The Wixel is based on the CC2511F32 micro controller from Texas Instruments. It has an integrated USB controller and 2.4GHz RF transceiver. The micro controller is based on Intels old 8051 architecture. I did not buy it to try and - [Dagu service droid: now with Raspberry Pi](https://bajdi.com/dagu-service-droid-now-with-raspberry-pi/) - Decided it was time to add a Raspberry Pi to my Dagu service droid. I already had a Pi shell so that came in handy to attach the Raspberry Pi to the service droid. It has 2 mounting holes in the back which are ideal to mount it. I drilled 2 holes in the back - [Iteaduino Lite: 5$ Arduino clone](https://bajdi.com/iteaduino-lite-5-arduino-clone/) - Yesterdag I received another small package from China. Inside it was the Iteaduino Lite. It's an Arduino clone developed by Iteadstudio. They claim that it's "the most inexpensive full-sized Arduino derivative board". I paid 5$ for it on Indiegogo, the early bird price. The current price on the Iteadstudio website is 8$. The special thing - [Testing switch mode voltage regulators](https://bajdi.com/testing-switch-mode-voltage-regulators/) - There are different types of DC-DC regulators. The most common are linear and switch mode regulators. Everyone that has tinkered with electronics has probably used a 78xx series linear regulator. They are easy to use since they don't need any special components. With most linear regulators you just put a capacitor on the input and - [Fitted wide angle lens to raspberry pi camera](https://bajdi.com/fitted-wide-angle-lens-to-raspberry-pi-camera/) - Bought me a set of mini Iphone lenses on Ebay, cost less then 10€. Since the viewing angle of the Raspberry Pi camera is pretty narrow I decided to try out a wide angle lens. My camera board is fitted to a pan/tilt kit on my Service droid robot. The narrow viewing angle makes it - [Controlling an Arduino through a Rapsberry Pi webserver](https://bajdi.com/controlling-an-arduino-through-a-rapsberry-pi-webserver/) - I've been looking for ways to control my Service droid robot, my Service droid robot has an ATmega2560 (with Arduino bootloader) and a Raspberry Pi. My goal is to control it over wifi. But I wanted to start with some more simpler things first. I've recently found some python code on letsmakerobots.com that lets me - [Using touch screen as remote control](https://bajdi.com/using-touch-screen-as-remote-control/) - I've been playing with a 5" TFT touch screen. I bought the TFT a while ago and quickly came to the conclusion that an adaptor shield is the best solution to connect it to an Arduino. These touch screen TFT's use a lot of pins. Another issue is that the controller chip for the TFT - [Arduino pro mini undershield](https://bajdi.com/arduino-pro-mini-undershield/) - I've designed another PCB :) This time it's a simple undershield for the Arduino pro mini. I received the PCB's from Electrodragon (12$ for 10PCB's) last week. The PCB has a Schottky diode and a 5V linear regulator, I'm using an LM2940 5V regulator. For the rest there are just 2 rows of female headers - [Pixy CmuCam5](https://bajdi.com/pixy-cmucam5/) - September of last year I backed the Pixy CMUcam5 project on kickstarter. Back then the people behind the project (Charmed labs) promised a November delivery date. With over 2000 people backing the project things turned out a bit differently. I only received my Pixy last week. I also had the bad luck that the package - [Led matrices and MAX7219 ic's](https://bajdi.com/led-matrices-and-max7219-ics/) - The Maxim MAX7219 IC is a serially interfaced 8 digit LED display driver. So it's the ideal chip to drive an 8x8 led matrix. I got interested in these chips when I saw that lots of Chinese electronics shops were selling small MAX7219 led matrix modules. The weird thing is that the MAX7219 IC is - [Simple DIY lab power supply](https://bajdi.com/simple-diy-lab-power-supply/) - I was getting a bit frustrated with my old lab power supply, a Manson EP925. I bought it second hand many years ago during my student years. The problem with it is that it has only one output. For many electronics projects I need several voltages, like 3V3 and 5V. Dangerous prototypes sells a PCB - [Bought a 199$* Prusa I3 3D printer](https://bajdi.com/bought-a-199-prusa-i3-3d-printer/) - I've been thinking about buying a 3D printer for more then a year. What put me of buying one is simple, time. I know people that have a reprap 3D printer, and from their experience I have learned that it's a very time consuming device. And then I'm just talking about the printing part. Before - [Arduino time lapse - camera pan device](https://bajdi.com/arduino-time-lapse-camera-pan-device/) - I own one of these small action cameras (SJcam SJ4000). I bought it because it's small, and easy to take with you wherever you go. To make nice stable videos I mount it on a mini tripod. This got me thinking that it would be fun to have a little motor between the tripod and - [Mearm forked](https://bajdi.com/mearm-forked/) - Some time ago I wanted to buy a mearm from Phenoptix in the UK, unfortunately or maybe lucky for me it was out of stock. A little while later I bought a Prusa I3 3D printer. While browsing Thingiverse I stumbled on the mearm. Someone had converted the original mearm files to stl files so - [3D Printer extruders](https://bajdi.com/3d-printer-extruders/) - End of last year I decided to build a new 3D printer. At that time I already owned a very cheap Chinese Prusa I3 printer, it worked, but wasn't a very reliable machine and it was dead slow. As I did not want to reuse any of the cheap Chinese parts of my old - [Arduino heart rate sensor](https://bajdi.com/arduino-heart-rate-sensor/) - I found a little heart rate sensor @ ICstation. It is a clone of the open hardware pulse sensor. The sensor is well documented, and it comes with Arduino and Processing example code. To try it out I connected the sensor to an ATmega328 running at 3.3V and loaded the example Arduino code. I could - [Rover 5 with gripper: remote control](https://bajdi.com/rover-5-with-gripper-remote-control/) - I've been rewriting the remote control code for my Dagu Rover 5. I wanted to integrate my encoder code in to my remote control sketch. In my old code I would directly scale the joystick values to a pwm value. Now I scale the joystick values to the time between encoder pulses. This is the - [Joystick controlled pan tilt kit](https://bajdi.com/joystick-controlled-pan-tilt-kit/) - Haven't posted here in a while :) But I've been very busy. And bought lots of new "electronic toys". One of the things I bought is a small plastic pan tilt kit. I got it on Ebay. It didn't come with the servos. But I still had some small Micro 9G servos that fit the - [Bajdupod 996R: how smooth?](https://bajdi.com/bajdupod-996r-how-smooth/) - Made some progress on my hexapod code today. I have written a function that moves all 18 servos in little steps. I had to use the delay function though. I then made a sketch to move the body of the hexapod up and down as smoothly as possible. You can see the result in the - [First anniversary of bajdi.com :)](https://bajdi.com/first-anniversary-of-bajdi-com/) - About one year ago I bought my first Arduino and started this blog to share my experiences with Arduino. My original goal was to learn C/C++, and I thought Arduino was a good way to get me started. After I connected a couple of buttons to my Arduino Uno and blinked some leds I started - [Arduino on gentoo](https://bajdi.com/arduino-on-gentoo/) - Well well I have finally managed to compile and install an AVR toolchain that works with Arduino on my Gentoo workstation. This was after 3 attempts to install the AVR-GCC toolchain. After installing, it would never compile without errors. Some people have written guides on how to install the toolchain, but they never worked for - [Simple obstacle avoiding sketch using an ultrasonic sensor](https://bajdi.com/simple-obstacle-avoiding-sketch-using-an-ultrasonic-sensor/) - Found a new library for ultrasonic sensors on the Arduino forums, NewPing.h. You can download it from the Arduino playground. So I wanted to try it out with my Dagu Rover 5. I modified an older sketch that used the ultrasonic.h library. It was pretty easy to change and I can confirm that the new - [Rover 5 with gripper](https://bajdi.com/rover-5-with-gripper/) - I had some bad luck recently, the voltage regulator on my Dagu Red back spider robot controller died :( The mcu on the board still works when I power it from USB but when I use external power the regulator only gives 3V it should be 5V. So I needed a new one, the European - [Arduino remote control](https://bajdi.com/arduino-remote-control/) - I built myself a remote control, Arduino based of course. I needed something that was more practical to use then just an Arduino Uno with various parts connected to it. My old remote control consisted of an Arduino Duemilanove with a joystick, wireless nRF24L01 module, Lipo battery and LCD attached. I had to hold all - [Syncing DS1307 RTC with timeserver](https://bajdi.com/syncing-ds1307-rtc-with-timeserver/) - My last data logging sketch was missing one feature to make it complete. Since I use a DS1307 RTC which is not very accurate, it loses a couple of seconds a day, I wanted to sync the time with a timeserver. Thankfully some smart people on the Arduino site have already made a library and - [Building a line following robot](https://bajdi.com/building-a-line-following-robot/) - I've started a new project, another "robot" and I'm going to name it Volga. When I was drawing a track in Autocad for the robot to follow I thought it looked like a river :) And it's made up of cheap parts just like those Russian cars. This will be a simple line following robot, - [Burning bootloader to ATmega 328P-PU](https://bajdi.com/burning-bootloader-to-atmega-328p-pu/) - I already bought a single ATmega 328P-PU microcontroller, I got it from the official Arduino store and it came with the bootloader already on it. I didn't have much trouble putting sketches on the chip when I put it on a breadboard. While searching for information on how to accomplish this I read that putting - [Arduino temperature logging and webserver with RTC](https://bajdi.com/arduino-temperature-logging-and-webserver-with-rtc/) - Made a really big sketch today :) I used an Arduino Uno, ethernet shield with sd slot, DS1307 RTC and 2 temperature sensors for this sketch. I used 2 different temperature sensors, one is a DHT22 sensor which can also sense the humidity and the other is a DS18B20 sensor. To get all this to - [Analogread from a TCRT5000 sensor](https://bajdi.com/analogread-from-a-tcrt5000-sensor/) - Played with a TCRT5000 sensor today. When I last tried these cheap little sensors I found out that they are very sensitive to ambient light. I always test my electronics on a breadboard, about a meter above it hangs a 40W halogen lamp. I got very different results when I turned of the lamp. So - [Dagu Rover 5 remote control with nRF24L01](https://bajdi.com/dagu-rover-5-remote-control-with-nrf24l01/) - Dagu Rover 5 remote control with nRF24L01 from Bajdi on Vimeo. I have updated my sketch to remote control the Rover 5. There were a couple of things I wanted to try out. The Dagu 4 channel motor controller I use is equipped with 4 current outputs. These outputs give a 0 to 5V signal, - [Rover 5 autonomous mode part 2](https://bajdi.com/rover-5-autonomous-mode-part-2/) - Dagu Rover 5 in autonomous mode from Bajdi on Vimeo. Since my Rover 5 has 4 encoders I wanted to do something with these encoders. There is an encoder library for Arduino which makes it very easy to read the encoders. I first tried the example sketches that come with the library to check if - [Arduino rc car part 1 motor control](https://bajdi.com/arduino-rc-car-part-1-motor-control/) - I still have an old Nikko RC car from about 20 years ago. It has lost it's body and looks very dusty. I plugged in some fresh batteries but I doesn't work anymore, the electronics are dead. So I'm going to try getting it back to life by putting an Arduino on it. I've already - [RF24 library revisited](https://bajdi.com/rf24-library-revisited/) - A while ago I started playing with a couple of nRF24L01 modules. I found 2 Arduino libraries, the Mirf library which is available on the Arduino playground and Maniacbugs RF24 library. I spent quite some time getting these things to work without much success. Eventually I got them to work with the Mirf library. I - [Continuous rotation servos and Arduino](https://bajdi.com/continuous-rotation-servos-and-arduino/) - I have 2 SpringRC SM-S4306R servos, these are continuous rotation servos with plastic gears. You can find them for less then 10$, I got mine on Ebay. These servos come with a bag of attachments, I got no less then 6 different plastic attachments. The difference with a standard servo is that these will continue - [Rover 5 autonomous mode](https://bajdi.com/rover-5-autonomous-mode/) - Rover 5 in autonomous mode from Bajdi on Vimeo. After writing a sketch to remote control the Rover 5 it was time to try and write a sketch to let it drive around the house autonomously. To keep things simple I used only one ultrasonic sensor for obstacle detection. My SRF06 ultrasonic module is mounted - [TCRT5000 sensor](https://bajdi.com/tcrt5000-sensor/) - I nearly forgot I bought these little sensors. The TCRT5000 is a reflective infrared sensor, it's a small plastic holder with an IR led and a photo transistor. The IR led emits invisible IR light, when an object is placed in front of it the light is bounced back to the phototransistor. The TCRT5000 has - [My rover 5: now with sensors](https://bajdi.com/my-rover-5-now-with-sensors/) - Found some time today to add some servos and sensors to my Rover 5. I started by drilling some more holes in the plexi glass to mount the servos and my little power PCB. I used nylon M2 nuts and bolts to fix the servos to the plexi glass, found these on ebay. To mount - [Arduino servo sweep](https://bajdi.com/arduino-servo-sweep/) - Now that I have my Rover 5 working I want to add a couple of servos with SRF06 ultrasonic sensors mounted on top of them. So I can let the SRF06 sensors detect an obstacle. The Arduino IDE comes with a simple servo library. One of the examples that comes with this library is a - [Dagu Rover 5 in action](https://bajdi.com/dagu-rover-5-in-action/) - Finally I received all the parts to make a small pcb to distribute the power for my Rover 5. I soldered some terminal blocks on it so I could connect my 2 cell 7,4V Lipo battery. The Dagu red back spider robot controller and the motors get their power direct from the Lipo battery. I - [Remote controlling the Dagu Rover 5 with a joystick](https://bajdi.com/remote-controlling-the-dagu-rover-5-with-a-joystick/) - I've hooked up the 4 motors from the Rover 5 to the motor controller and connected the direction and PWM pins to the red back spider robot controller (that's a very long name). When you connect the motors to the motor controller take a good look which motor is what number. You don't want to - [Blink without delay and millis but with a DS1307.](https://bajdi.com/blink-without-delay-and-millis-but-with-a-ds1307/) - I've been breaking my head over this for the last hour. I want to use the DS1307 RTC module in a home automation project. To do certain time based things. So I thought lets try to rewrite the "blink without delay" example that comes with the Arduino IDE and use the data from the DS1307 - [Dagu Rover 5](https://bajdi.com/dagu-rover-5/) - On friday DHL delivered my new toys :) Arduino-direct have expanded their shop with robotics, and is now offering the Rover 5 and the Dagu controller boards. I had tried to order the Rover 5 at several European shops but none could deliver one, they were all out of stock. So I ordered it from - [Arduino on a breadboard](https://bajdi.com/arduino-on-a-breadboard/) - The Arduino Uno together with the Arduino IDE is an easy way to program the Atmel ATmega 328P micro controller. You don't really need to buy an Arduino board if you want to play with the Arduino IDE. You can just buy an Atmel ATmega 328P, 2 capacitors, a crystal and a 10K resistor. Plug - [Wireless control of 2 stepper motors](https://bajdi.com/wireless-control-of-2-stepper-motors/) - Arduino: wireless contol of 2 stepper motors from Bajdi on Vimeo. A month ago I wrote a sketch to control 2 little stepper motors with an analog joystick. After getting the Nrf24L01 modules to work last week I wanted to connect the joystick to one Arduino and the stepper motors to another Arduino. It was - [Playing with Nrf24L01 modules](https://bajdi.com/playing-with-nrf24l01-modules/) - I recently bought 4 Nrf24L01 modules, 2 small modules with internal antenna and 2 bigger ones with a preamp, amp and external antenna. You can find the small modules for less then 5$ a piece on Ebay. It's the cheapest way make a wireless connection between 2 Arduino's. These modules are based one the Nordic - [RGB led color mixing](https://bajdi.com/rgb-led-color-mixing/) - Arduino RGB led color mxing from Bajdi on Vimeo. The above video is what you get when you connect 3 RGB leds to an Arduino Mega 2560. I covered them with the diffusion cover from my Nikon flash to get a better light diffusion. RGB leds are fun things, you can make some cool visual - [DHT22 datalogging](https://bajdi.com/dht22-datalogging/) - By connecting a DHT22 temperature and humidity sensor, a DS1307 RTC module and an SD card module to the Arduino Mega 2560 we can make a data logging system. The DHT22 sensor measures the temperature, the DS1307 gives us the date and time and this data is then written to the SD card over the - [Flamingo EDA ethernet module](https://bajdi.com/flamingo-eda-ethernet-module/) - I'm working on a sketch that includes my Flamingo EDA ethernet module. The module I have is not a shield that you can plug on an Arduino but a separate board with the Wiznet W5100 chip on. I bought it together with the IDC shield, you can plug this shield on an Arduino Duemilanove/Uno and - [My PIR detector sketch](https://bajdi.com/my-pir-detector-sketch/) - This time I have written a sketch to control a light with a PIR detector, well in this case the light is just a led. When the PIR detector detects movement it turns on the light, and after 30 seconds the light goes out. This is a common circuit in home automation, some of these - [Arduino digital clock](https://bajdi.com/arduino-digital-clock/) - I found a DS1307 module in my mailbox today. The DS1307 is a serial real time clock, or RTC. You can easily find this chip at your favourite electronics dealer and make your own circuit with it. Several companies that make Arduino stuff sell modules with this chip. They all come with a small battery - [Arduino Mega 2560 and sd card module](https://bajdi.com/arduino-mega-2560-and-sd-card-modul/) - I bought a sd card module some time ago, from a Chinese seller on Ebay. These modules are really cheap, I paid 2,03€ for it and that includes shipping to Belgium. You really wonder how they can do it. To try it out I connected the sd card module to my Arduino Uno and uploaded - [ADXL345 simple sketch](https://bajdi.com/adxl345-simple-sketch/) - Arduino + ADXL345 from Bajdi on Vimeo. After running the example sketch sketches that come with the ADXL345 accelerometer library it was time to try something on my own. And the simplest thing is fading a couple of leds. By mapping the value of the Y-axis to 2 big 10mm leds connected to 2 PWM - [Arduino Uno test](https://bajdi.com/arduino-uno-test/) - I wanted to do a quick check if all the digital pins on my Arduino Uno were still working. The Arduino Uno has 14 digital pins, these can all be set as input or output. So I needed a sketch with 14 times the same statement to declare the pins as output and to write - [ADXL345 does it work?](https://bajdi.com/adxl345-does-it-work/) - The mail man delivered some pin headers (2€ for 5 x 40 pins on Ebay) last week and I found some time to solder them to my ADXL345 board. So it was time to start playing with the ADXL345 accelerometer. I had a look around the various tutorials on the internet and found lots of different - [Arduino find the number game](https://bajdi.com/arduino-find-the-number-game/) - I think I have programmed my first computer game. Computer being an 8bit micro controller :) I hooked up 4 push buttons and an I2C LCD to an Arduino Uno. The first push button adds 1 to the number shown on the LCD, the second detracts 1, the third multiplies the number by 2 and - [SRF06 ultrasonic range finder](https://bajdi.com/srf06-ultrasonic-range-finder/) - I've played with an SRF06 range finder this week. The SRF06 is an ultrasonic distance measuring module. They are ideal to sense objects, so I bought 2 to put on the front and back of a robot. The Arduino library for these modules gives you the detected distance in centimeters or inches. You can find - [New toy, ADXL345](https://bajdi.com/new-toy-adxl345/) - The postman delivered a new toy this week. I bought an ADXL345 accelerometer on Ebay, I was a little bit surprised when the package arrived, the board came in an envelope but I couldn't feel if there was something inside, after opening the envelope and holding it up a little black bag fell out. Inside - [Dimming led with IR remote control](https://bajdi.com/dimming-led-with-ir-remote-control/) - Another day, another sketch :) This time I've made a sketch to dim a led with my IR remote control. I first tried to use the remote control to directly set the value of the analogue write variable. That way every time I pushed the remote control the value would go up or down. I - [Joystick and 2 28YBJ-48 stepper motors](https://bajdi.com/joystick-and-2-28ybj-48-stepper-motors/) - Since I have 2 little stepper motors and a joystick I thought it would be nice to see if I could write a sketch that would let me control them with the joystick. I first connected the little stepper motors and ran an example sketch I found here to see if they were working. To - [Arduino webserver, so easy :)](https://bajdi.com/arduino-webserver-so-easy/) - Since I had an Arduino ethernet shield I was eager to try it out. I thought that this was going to be a very difficult thing to get working, since I had bought the ethernet shield without knowing much about it. I was very pleased to find out that the shield was based on the - [Flamingo EDA bricks and shields](https://bajdi.com/flamingo-eda-bricks-and-shields/) - When I ordered my first Arduino's I also bought a whole bunch of sensors. That way I could experiment and make many tutorial sketches that are easily found on the internet. Arduino has become very popular, a quick Google search for Arduino tutorials will give you hundreds of websites with example sketches and cool things - [DHT22 testing](https://bajdi.com/dht22-testing/) - One of the many sensors I bought is the DHT22. This is a digital temperature and humidity sensor. It has 4 pins but only 3 are used. To get it to work you will need the DHT library, this library supports both the DHT11 and DHT22 sensors. I found this nice example sketch for the - [Arduino IR remote control](https://bajdi.com/arduino-ir-remote-control/) - I have been playing with the infrared remote control that you can get here . This little remote control comes with an IR receiver and resistors, so you have everything you need to use it. How to connect the IR receiver you can see here. The beauty of Arduino is that there are hundreds of - [Playing with push buttons](https://bajdi.com/playing-with-push-buttons/) - The first sketch I tried with my Arduino Uno was the button sketch. The code to turn on and off a LED is quite simple to understand even for someone like me that has no programming experience. There are some tutorials on lady Ada's website, they are very good for people that have no knowledge - [Arduino Uno pinout](https://bajdi.com/arduino-uno-pinout/) - Found this very handy Arduino Uno revision 3 pinout photo on the Arduino forum. You can see it here. I always forget where the I2C pins are. I've placed the photo on my desktop for easy reference :) - [Powering Arduino](https://bajdi.com/powering-arduino/) - Now that I have 2 Arduinos I need something to power them. Easiest is to power the Arduino with the USB cable that you also use to upload a sketch. If you're going to use it without a pc you will need another solution. One solution is to buy connectors that fit on 9V 6LR61 - [Where to buy Arduino stuff?](https://bajdi.com/where-to-buy-arduino-stuff/) - After spending some time on the Arduino forum I found a link to the Arduino-direct webshop. It's a Chinese webshop, and that means they have very competitive prices. Of course shipping and potential import duty and VAT makes it less interesting. I ordered a couple of hundred dollars of parts and had it shipped over - [Arduino and Gentoo, a bad cocktail.](https://bajdi.com/arduino-and-gentoo/) - Rant: Installing Arduino on Gentoo is a b*tch. For Arduino you need the avr gcc toolchain, this you can install through a portage overlay. But because of some bugs in avr gcc this won't compile correct code for the Mega 2560. After googling for hours and reading dozens of forum and blog posts I got ## Pages - [Stepper robot arm](https://bajdi.com/stepper-robot-arm/) - This page is a work in progress. On this page you can find all the Freecad and stl files of my 3D printable mearm fork. It is inspired by the MeArm but it does not share any parts with it. I designed it from scratch in Freecad 0.15. The arm consists of 13 different parts, - [Bajduino 328](https://bajdi.com/bajduino/bajduino-328/) - I kept this board as simple as possible. It just has the components needed to make the ATmega 328P-PU work. It has an ICSP connector to bootload the chip. So I can easily connect my USBasp to the board. To upload sketches I use an FTDI connector for which there is a header in the - [Bajduino 1284](https://bajdi.com/bajduino/bajduino-1284/) - The Bajduino 1284 is a simple breakout board for the Atmel ATmega1284P-PU. I designed the PCB in Eagle 6.2.0. The Bajduino 1284 has all the necessary components to make the ATmega1284 in DIP format work. All the digital and analog pins on the micro controller are brought out to male and female headers. The silkscreen - [Bajduino](https://bajdi.com/bajduino/) - After playing with Arduino for a while I thought about making my own PCB's. I installed Eagle and tried to design some simple PCB's. I actually learned to work with Eagle by watching Eagle tutorials on Youtube. I've had all my boards made in China so far. And I can't complain, prices are very low ## Categories - [3D printing](https://bajdi.com/category/3d-printing/) - [Arduino](https://bajdi.com/category/arduino/) - [Arduino sketches](https://bajdi.com/category/arduino-sketches/) - My Arduino sketches - [Bajdupod 996R](https://bajdi.com/category/bajdupod-996r/) - 18DOF Arduino hexapod - [Bajdupod 9G](https://bajdi.com/category/bajdupod-9g/) - 12DOF Arduino hexapod - [Bob the biped](https://bajdi.com/category/bob-the-biped/) - 4 servo Arduino biped - [Buying parts](https://bajdi.com/category/buying-parts/) - How to spent € - [Dagu Rover 5](https://bajdi.com/category/rover-5/) - Dagu Rover 5 tracked robot: my development platform - [Dagu service droid](https://bajdi.com/category/dagu-service-droid/) - [Gentoo](https://bajdi.com/category/gentoo/) - My favorite Linux distro - [Insectbot](https://bajdi.com/category/insectbot/) - [Line following robot](https://bajdi.com/category/line-following-robot/) - Simple Arduino line following robot - [Raspberry Pi](https://bajdi.com/category/raspberry-pi/) - [Self balancing bot](https://bajdi.com/category/self-balancing-bot/) ## Tags - [28BYJ-48](https://bajdi.com/tag/28byj-48/) - [3D printing](https://bajdi.com/tag/3d-printing/) - [74HC595](https://bajdi.com/tag/74hc595/) - [ADXL345](https://bajdi.com/tag/adxl345/) - [ATmega1284](https://bajdi.com/tag/atmega1284/) - [ATmega328P-PU](https://bajdi.com/tag/atmega328p-pu/) - [Bajduino](https://bajdi.com/tag/bajduino/) - [DHT22](https://bajdi.com/tag/dht22/) - [DS1307](https://bajdi.com/tag/ds1307/) - [DS3231](https://bajdi.com/tag/ds3231/) - [EL shield](https://bajdi.com/tag/el-shield/) - [electronics](https://bajdi.com/tag/electronics/) - [encoder](https://bajdi.com/tag/encoder/) - [Gentoo](https://bajdi.com/tag/gentoo/) - [gripper](https://bajdi.com/tag/gripper/) - [HC05](https://bajdi.com/tag/hc05/) - [heartbeat](https://bajdi.com/tag/heartbeat/) - [hexapod](https://bajdi.com/tag/hexapod/) - [HMC5883L](https://bajdi.com/tag/hmc5883l/) - [I2C](https://bajdi.com/tag/i2c/) - [IR](https://bajdi.com/tag/ir/) - [L293D](https://bajdi.com/tag/l293d/) - [L298](https://bajdi.com/tag/l298/) - [L9110](https://bajdi.com/tag/l9110/) - [LED](https://bajdi.com/tag/led/) - [LGT8F88A](https://bajdi.com/tag/lgt8f88a/) - [MPU6050](https://bajdi.com/tag/mpu6050/) - [Nano](https://bajdi.com/tag/nano/) - [nRF24L01](https://bajdi.com/tag/nrf24l01/) - [Pixy](https://bajdi.com/tag/pixy/) - [Pololu](https://bajdi.com/tag/pololu/) - [power led](https://bajdi.com/tag/power-led/) - [pwm](https://bajdi.com/tag/pwm/) - [python](https://bajdi.com/tag/python/) - [Raspberry Pi](https://bajdi.com/tag/raspberry-pi/) - [RGB LED](https://bajdi.com/tag/rgb-led/) - [robot](https://bajdi.com/tag/robot/) - [Serial](https://bajdi.com/tag/serial/) - [servo](https://bajdi.com/tag/servo/) - [SG90](https://bajdi.com/tag/sg90/) - [SR04](https://bajdi.com/tag/sr04/) - [TCRT5000](https://bajdi.com/tag/tcrt5000/) - [TFT](https://bajdi.com/tag/tft/) - [ultrasonic](https://bajdi.com/tag/ultrasonic/) - [VS1053](https://bajdi.com/tag/vs1053/) - [webserver](https://bajdi.com/tag/webserver/) - [WiiCamera](https://bajdi.com/tag/wiicamera/)