Search this site

Wednesday, September 12, 2018

Arduino nano suddenly get error: avrdude: stk500_getsync() (Solved)

I am still new in arduino things
I use the arduino IDE from windows store with auto update on.

So basically what happen is like this:
My PC using Arduino IDE v1.8.5 because I never close that window so it never update.
And then when I try to upload a program from my laptop which is use Arduino IDE v1.8.7, I got these error

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x53
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x65
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x75
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x70
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x50
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x44
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x0d
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x0a
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x72
An error occurred while uploading the sketch
After doing some googling (thanks Mr. google), I found out that this error means that you computer has connection problem with your arduino, meanwhile I didn't do anything since the last time.

The same error happened after I update my IDE in my PC from v1.8.5 to v1.8.7

Finally, I found out that I used the wrong processor
So basically there are update in bootloader of nano and I need to use the ATmega328(Old Bootloader) instead of ATmega328

And that fix all my connection problem
I hope this can help, for someone who still use the old nano bootloader

Thursday, May 31, 2018

Install Jupyter in windows 10

As my previous diary is about jupyter here

so now I will make a note how to install jupyter in windows 10 (my current OS)
I assume you already have anaconda installed

To install jupyter we need to do this step
python  -m pip install jupyter

I think it will be the same in linux, but I haven't try it yet

pip install jupyter
And done


Then after that you can run it by type
jupyter notebook
on you command prompt

It will open http://localhost:8888/ in your browser

Jupyter python

So I started to use python 1 year ago,
usually I just write the code in notepad++ (really?)
yeah it is notepad++
not because I don't need any IDE, but just because I am too lazy to install it
and notepad++ is enough for me (I just need the colors things - for now)

Then I saw some of my friend use jupyter, so I will try to use it
why?
because I curious about ipython, i from internet maybe, I am not sure
but maybe it will be fun

It is for debugging perline/cell and make a beautiful doc in your doc

I already put how to install jupyter in windows 10 here

Tuesday, February 4, 2014

Enable login in phpmyadmin

Now I want to enable login in my phpmyadmin

First change root password (both) using phpmyadmin
Then after you change it, it will send you an error message
Open this file
C:\xampp\phpMyAdmin\config.inc.php
Change the line 19
$cfg['Servers'][$i]['auth_type'] = 'config';
To
$cfg['Servers'][$i]['auth_type'] = 'cookie';
And also line 23
$cfg['Servers'][$i]['AllowNoPassword'] = true;
To
$cfg['Servers'][$i]['AllowNoPassword'] = false;
After that restart you apache
Done
 

Change phpmyadmin's URL in XAMPP windows

I just setting my phpmyadmin in windows
I installed it using XAMPP

And I want to change the phpmyadmin's URL
default: 127.0.0.1/phpmyadmin and I want to change it to 127.0.0.1/myownlink

It's not hard
just open this file
C:\xampp\apache\conf\extra\httpd-xampp.conf
 In line 99
Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
Change it to
 Alias /myownlink "C:/xampp/phpMyAdmin/"

And don't forget to restart your apache in XAMPP
Done