Skip to main content

Posts

Showing posts from 2014

How to setup 2FA On Linux SSH Login

  This is a simple setup guide to enabling Two Factor Authentication (2FA) on Linux SSH login. I this article I wont go deep into setup and issues that I have faced when implementing this. First thing is first Update your system first. I have used Ubuntu 20.04 and it is always up to date. To enable 2FA you need to install google authenticator modules sudo apt install libpam-google-authenticator Configuration for PAM and SSHD Add the the following line to /etc/pam.d/sshd and After adding this line please restart the sshd services.  auth required pam_google_authenticator.so Go to /etc/ssh/sshd_config and check if the following line exist. Default value will be "no" so change it to "yes" to activate.  ChallengeResponseAuthentication yes Configuration for Authenticator In the terminal run google authenticator command It will ask few things to acknowledge by user. Details you can see from the below video. Once this part is done you are ready to use the 2FA in ubuntu. T

My first Android App

Hi everybody, i have found a cool website to built Android applications in a split second. Yeah in seconds you can learn how to code for your android device. Since i am not a fan of Apple's products i will not talk about IOS stuffs. This is built by MIT and its one of the best product i found to develop for Android devices. Within few days i learnt the basic and later built an wonderful app to control my Bluetooth modules. This is how the coding looks like. Look how easy it is, just like a puzzle. For advance projects like these you need to refer to Android guide to know how some phone modules work with the command. Here is some pictures of my app. This a good and useful software for kids and schools. Instead teaching bullshit we can teach this to increase mind activities / practical involving others to learn coding for there daily use. For example i built this app to switch on/off light, you can built an app to monitor your plants health. This test is done

Solution for avrdude: stk500_getsync(): not in sync: resp=0x00

Its been a while that i have noticed an error that sometime frustrates. When i first start using Arduino Uno and flash custom ATMEGA328P firmware i have faced tons of problems and each of them ease my work when i found a cause and solution for that. Most of Arduino users faced this and thousands of posts were in the forums related to avrdude: stk500_getsync(): not in sync: resp=0x00 error. Some solutions in the forums are not much solved the issues. Earlier i faced this when i built a custom PCB with ATMEGA328P-AU. ATMEGA328P-AU  After flashing the firmware via ICSP (In circuit Serial Programming) Then i used FTDI serial to load the sketch. Finally the error occurs and the whole project came to a halt. Screen shot of Arduino IDE I have spent most of the time troubleshooting and found solutions for it. I will state what i have found, which cause this error normally. Wrong device selected from the IDE PCB/Circuit designing issues. FTDI module / Driver & software

My first Micro-controller program and this is how it was started.

I always have interest in electronics and i think in 1994 i got an physics book from some where that i don't remember now. Everyday after school i read it and got more interested on it even though i don't understand what its all about. Day by day small radios are disassembled and experimented how it works and able to fix the issues. When i was in grade eight till ten i don't have any interest in studying any subject that i feel useless. More and more focus to physics and math but 99% is always physics specially the electronics chapters. Couple of friends from school know that i know electronics some how and we share what we built and ideas. Those days Internet or PC is not available for me but a friend have i PC and i used to visit him and he knows some computer skills. we spent time on dial-up Internet in IRC. :) One day my physics teacher asked me do you like electronics? i said yes i do and i want to learn more. So he told if you love electronics i can help you t

Clover Display M302 hack

Its been a while i have this LCD and today i thought of connecting the LCD display to Arduino. Unfortunately i could not found any pin outs of this from any where and from the manufacture. Actually this is very old model which i got from old FAX machine and this display is a very cheap from online sources. Clover Display M302 PCB Ver 1.0 (16x2) which has 10 pin flat cable. After researching for a while from the internet i have seen in many forums people are asking for help on how to connect it and what is the pin configurations? so i thought of helping them as well as my self at the same time. After going through some of my old collections of Russian data of displays and things i found a basic diagram of how 10 pin LCD display configuration.  PIN1   - VSS PIN2   - VDD PIN3   - CONTRAST PIN4   - RS PIN5   - R/W PIN6   - ENABLE PIN7   - DB4 PIN8   - DB5 PIN9   - DB6 PIN10 - DB7 I tried these configurations and wired up to the arduino with the LCD sketch

Vigani modifications was perfect.

During the last trial runs the boat just flipped over by an wave and sunken, but with help from a friend i was able to rescue it. When it was rescued almost all the electronics was under sea and started to corrode. With lots of cleaning and soldering i was able to run it again. But with new motor, ESC, SD card and battery. So after that i modified the boat a lot and the final result was very successful. Earlier the propeller was bit high and it don't cut enough water. Now the shaft and everything is lowed around 1 half inch. New brushless motor and ESC was tested for two weeks for speed controlling and finally a bit more water proofing. Old shaft coupler removed and made my own coupler for shaft and motor. Most of the firmware also cleaned up ;) After all these modifications i finally did a wonderful trial run. :) Early morning checked the tide table and it was perfect for test so packed everything and went to testing area. Today i have done continuous for ru

Helpfull software for designing encoders.

I design my wheel encoders in coreldraw and it takes time to do the design. But recently found a better solution for that. A small software called wheel encoder generator which helps you to design different types of encoders in few seconds. I hope this will be a helpful tip for those who whats to make there own optical wheel encoders. Link for the software https://code.google.com/p/wheel-encoder-generator/

Test run for Autonomous boat. 18-04-2014

Today we planed to conduct as much as possible test runs before sunset so we did three successful missions. For today's test new gadget was introduced to record video from front of the boat. So i modified a key chain camera( which the battery is damaged) and fixed a 3.7V battery to power it and it was gooood. :). I gave a name to this mod as "Go puroa". Go puroa All the three test was good but due to some technical issues an unattended guys the test was bit delayed. The boat traveled around 60 - 70 meters wider way-point locations. Command center which uploads all mission way-points and manual override if any thing goes wrong (if the boat goes too from reach due to some error). Few data result of the test . Even though the sea is not calm enough the boat tries its best to with the small waves. videos will be uploaded soon once all videos are converted to up loadable format to YouTube. Conclusion:  There few code fixing to be done while

The autonomous boat build.

Today is one of my happiest days of invention. Finally after lots of frustration of hardware limitations and experimenting day and night on my free time, i manage to test my hardware part in real environment condition. I am talking about a vessel which runs autonomously to the way-points and returns to home without any control by me or anyone. I can not go too deep on this project cause this is group project which i am working on and i hope the final product will be live on web once fully completed. The test run first run was a mess, yes it was a mess with lack of knowledge of building the steering and motor control the whole test was a failure and a passing by small boat help us to rescue out boat. So after this i have stop building this further and starts experimenting and learning the steering logic. Kab0000000ms Kaboooms and loss of valuable hardware during hardware experimenting but with support managed to get new stuffs to start the experiments again. Re Test run ( the

Its here and its manual override controller

Its been a while that i am working on an autonomous vehicle and some major parts are tested and still going on with the project. For this project its better to have a manual override control via RC remote controller.  After researching the RC controller and receiver i have found out the RC remote controllers use PPM signals to control the servo and ESC. In one of my earlier post's i have mentioned reading the receiver outputs and tested how it can be controlled. PPM signal out from the RC receiver. I have on of my bixler controllers and finally able to use it for this project. Hobbyking 6 channel receiver and 4 channel transmitter is used for this and i wont guaranty that this will or will not work with your projects. The PPM signal will vary depending on different vendors. I read all the output of the receiver and log it for further reference.   Designing a circuit Since the code will be very very simple i decided to use ATtiny13A-PU as the micro controller

Bootloading Atmega1284P Part-2

 After the the part 1 of this episode i had some weird problems with the ATmega1284p. Sometimes i am able to upload the sketch via ISP and UART side also having some issues to upload sketches and use as an serial port. So i ask some assistance from the letmakerobots.com and explained whats going on with my 1284p. Since i boot loaded it recently, i did not have any idea of what might be the cause. Finally bajdi from LMR replied me and after few conversations with him, he mentioned that he have used 1284p lots of time and this guy built robots, controlling lots of servo from it. So my boot-loading is perfect. When i run single servo sweep sketch the jittering and wobbling starts and stops. So i planed to take the circuit out of bread board ( which have created problems and weird interference a lot for me) and build it on copper strip board which is in the image above. With the proper smoothing capacitors and supply it worked. I manage to upload the sketches via UART side and contr

Bootloading Atmega1284P Part-1

Finally able to flash the Arduino bootloader it to fresh Atmega1284P via my version of ISP programmer. ISP programmer includes and Atmega328P and FTDI board for serial communication between PC and the Atmega328P. Armega328 is loaded with ArduinoISP sketch. This works with Arduino 1.0.1(old version that i use for test) IDE and still testing for Arduino 1.5(i have upgraded to). Once the following files installed to the Arduino Hardware folder ( https://github.com/maniacbug/mighty-1284p/zipball/master ) please mind to restart the application. After restart you will see from the hardware list as Original Mighty 1284p 16 and 8MHz. Select the hardware, port and the programmer as Arduino ISP and burn the bootloader. This process takes quite sometime and after its loaded, do a test by loading blink sketch. Use upload using programmer button to upload the sketch. Blink sketch on test.. cool it works for me. I am trying to workout this method in version 1.5 too, as soo

RC receiver Hack

I have interface the Hobbyking HK-TR6A V2 a six channel receiver to my chipkit uC32 (Arduino equivalent to UNO). Actually this came up to mind when manual override was needed for a project currently i am working on. In this video i have just monitoring the wave forms which receiver outputs. Once i done testing i will upload more information and videos. I am planing to make a prototype soon. ;)   Readings measured   Waveform of the PWM