Tuesday, January 15, 2019
Live demonstration idea for Arduino and Raspberry Pi class
Tuesday, September 25, 2018
Sports posture correction robot idea

It is really expensive to hire a sports trainer to learn postures ('forms'). Posture is critical for playing any sports like Tennis, Golf, Baseball, etc.
How about building a robot that teaches you the form. Based on the device below, it should be relatively easy to build a robot like that. On an application, put in sports you want, have the robot measure dimension of your body, put some sensors on the racket, and Go!
It can have you do the optimal posture for any instrument at any number of times until your body remembers.
Or have your robot correct your posture in real time while you play sports. Anyways, future will be fun.
Wednesday, April 25, 2018
Emotional intelligence for hobby electronics

Sometimes, hobby electronics can be frustration and not joyful.. Above is a picture of my hobby workdesk while doing overnight work to complete a hobby project. It was a toil. After the experience, I learned next things to be happy with hobby electronics.
-work with people, as part of a community
-work on small things. I get more joy from completing many small fun things than completing one large difficult thing.
Sunday, March 4, 2018
Command lines for launching a Django-powered web application at amazon web service

As an amateur web developer, I needed a blog post that shows how to launch a web site in Amazon Web Service. I made one!
- Choose 'Ubuntu Server 16.04 LTS (HVM), SSD Volume Type - ami-66506c1c' or something like that from Step 1.
- For Step 6: Configure Security Group, click add group and choose HTTP. The proceed to the next. For source field, it should be like 0.0.0.0/0, ::/0
- When you launch ubuntu, you must download and save the pem file for ssh. Also the pem file security should be secure. This means you type in: chmod 400 your.pem
Line by line, copy each command and paste into the ssh command prompt, and run it by pressing enter. After running, do the same for the next command. Do not copy and paste lines that start with -----------. These lines are for procedure to perform by you.
-----On the ssh window, run the following commands.
sudo apt install unzip
--- Now, using your web browser, visit that address you put into that django.conf file (i.e. ec2-34-228-36-21.compute-1.amazonaws.com )
---------Now if you want to proceed to more complicated website,
cd ~
wget https://images.template.net/wp-content/uploads/2014/12/random-login-form.zip
unzip random-login-form.zip
mv index.html /home/ubuntu/website/go/template/bibindex.html
re
---------To work with your own index.html file:
exit
cd into your folder that contains index.html
sftp into your server
put index.html
exit
ssh into your server
mv index.html /home/ubuntu/website/go/template/bibindex.html
re
Thursday, December 4, 2014
Idea fragment for business idea
Someone made a dent on my car. She had to pay for repair. But if someone else totals my car, the first person does not have to pay at all....
This can be a shadow of a bigger and interesting business idea. I am not suggesting the destruction as business idea. But.... I don't know, this idea can be related to something else...
Asked ChatGPT the following on August 30th 2026 -------------------------
Yes. What you're describing is a form of risk externalization / liability dilution: an earlier person's damage can become economically irrelevant if a later event destroys the asset anyway.
There are several social and economic mechanisms built around similar observations:
- Moral hazard: If someone knows they won't bear the consequences of an action, they may take more risks. In your example, the first person might think, “The dent won't matter if the car gets totaled later.”
- Insurance pooling: Insurance deliberately spreads losses across many people. A particular loss may effectively disappear into a larger pool of risks, although insurers use deductibles, premiums, and subrogation to prevent people from exploiting this.
- Betterment / unavoidable-loss rules: In tort and insurance law, damages generally aren't supposed to make someone better off than they would have been absent the harm. If a later event independently destroys the car, the earlier damage may cease to produce an additional compensable loss.
- Sequential liability: Economists and legal systems sometimes allocate responsibility according to whether a later event would have produced the same outcome anyway. This is closely related to the idea of counterfactual causation: “But for the first person's action, would there still have been a $0-value car after the second event?”
- Moral hazard from “already damaged” assets: Once an asset is heavily damaged, additional damage can have little or no marginal economic cost. This phenomenon appears in insurance, environmental damage, property maintenance, and even organizational resources.
There's also a deeper economic concept here: the marginal value of damage depends on the asset's remaining value. A $1,000 dent to a $30,000 car is economically significant; the same dent immediately before an accident that makes the car worth $0 may have essentially zero incremental loss.
But there's an important wrinkle: the first person's responsibility doesn't necessarily disappear just because the car is subsequently totaled. If the first damage affected the car's value, caused a separate injury, reduced its salvage value, or increased the consequences of the second accident, there can still be a compensable loss.
If you're asking because you're wondering whether people could deliberately exploit this principle as a social/economic strategy, that's a particularly interesting question—it connects to strategic moral hazard, liability games, and the economics of sequential accidents.
Wikipedia of experimental automations
Sunday, September 28, 2014
Humor recommendation app idea
Make an app containing speech recognition functionality and humor database so that the app can provide real-time recommendation of jokes based on the content of the conversation of the user. You are not funny? There is an app for that!
The database would be: http://grouplens.org/datasets/jester/
The speech recognition functionality would be: http://stackoverflow.com/questions/9625045/speech-recognition-android-app
Tuesday, February 4, 2014
Arduino for Yeast Fermentation
I am a student studying yeast fermentation, and we use this device called 'PLC' (Programmabel Logic Circuit, sounds intimidating yeah) to automate parts of the fermentation process. The industry uses this for fermentation processes too. Basically, capture electronical signal from the fermentor indicating its concentration of gas using PLC and send a signal from PLC to control another gas pump to maintain the gas level in the fermentor. This is the photo showing the PLC (the giant monster at the left) next to Arduino, and the fermentor that I use (at the background). So the machine is much bigger and more expensive (~$500 vs $25). I have been playing around with programming PLC these days..
But you know what? I found you can do the exact same thing with Arduino. Arduino can take industry standard current or voltage signals and send out current and voltage signal in any way you want. The programming is much cleaner and interesting than PLC's. (PLC takes in this 'Ladder Diagram' programming that any programmer might feel very awkward.) So if I were that person in the industry, I would totally consider using arduino for yeast fermentation process development research. With Arduino, it saves you a lot of money (~$500), and it is much more flexible to program.
Since I am nearly the only person in the fermentor lab in an academic institution, I can do whatever heck I want with the fermentor including implementing arduino. Yeah you know what I will be doing next...
Update: Here is my MS thesis using Arduino. See page 24
https://repository.lib.ncsu.edu/bitstream/handle/1840.20/34946/etd.pdf?sequence=1&isAllowed=y
Sunday, October 20, 2013
How to make the LED guided piano teaching device
First, I made an android app for the LED guided piano. I am sharing the code at a Github. This android app parses *any* piano MIDI songs and convert the data into data format for driving the IOIO OTG board. https://github.com/kisurb/led_guided_piano
Materials needed:
IOIO OTG
2 Meters of LED Strip (WS 2801 based)
Your android phone.
Micro USB Type A to Type B cable (For connecting your phone to IOIO OTG)
Soldering Supplies.
Breakable pin header. (This goes to IOIO OTG and LED Strip. This is actually important)
Lots of short jumper wires (female to female)
5 volt 1A power supply and corresponding power jack
(So power supply powers the IOIO OTG, and IOIO OTG directly powers LED strip)
3M Double Sided Tape (For attaching your LED strip to Piano)
Three critical notes.
The 2 Meters led strip is cut into three parts. One part for powering 20 black keys, one part for powering 21 white keys, and one part for powering 5 black keys and 15 white keys. This is because IOIO OTG can send only 64 bytes of data which correspond to controlling 21 led lights. So this is the setup. Three strips are controlled simultaneously.
Second.
The way you attach the LED strip to the white key. Do not set tapes on every single white keys
Third.
For black keys you have to cut the LED strips into pieces of three LED lights and two LED lights to accomodate for distances between the black keys. Also use pin header to connect the LED strip to jumper wires. You do not want to solder the jumper wire directly onto the LED strip because the LED strip can tear easily.
How to connect from IOIO OTG to LED strip:
Solder the pin headers onto the pins of IOIO OTG and LED stip. Connect the headers using female-to-female jumper wires. Here is the setup.
This is the Java code within the android app that tells the IOIO OTG to use pin 1,2 for strip 1, and pin 4,6 for strip 2, and pin 10,11 for strip 3.
white= ioio_.openSpiMaster (27,4,6,15 ,Rate.RATE_50K);
black= ioio_.openSpiMaster (28,1,2,16 ,Rate.RATE_50K);
three= ioio_.openSpiMaster (29,10,11,17 ,Rate.RATE_50K);
This is the explanation for each input for the above java code.
spi = ioio.openSpiMaster(misoPin, mosiPin, clkPin, ssPins, Clock rate;
ioio.openSpiMaster does not serve 'null' for the case there is no misoPin or ssPin, so we have to specify misopin or sspin even though they are not used.
pin 27,28,29,15,16,17 are not used.
Monday, October 14, 2013
Use Bacteria for Communication
Use bacteria. Recombinant technology can put any DNA into bacteria. Write your message into bacteria using DNA, and send the bacteria to the receiver through air, water stream, or dirty surfaces.
Friday, October 4, 2013
LED Guided Piano Playing
Saturday, May 4, 2013
Cosmetics I Really Want to Build
Currently, girls wear beautiful cosmetics. They are wonderful. .. but they are static. Once drawn, it stays there as it is. But wouldn't it be GREAT if it changes? I mean wouldn't it be great if we can 'spray' special LCD material onto human face so that LCD screen on human face can, like a TV, display absolutely dynamic & beautiful art patterns in the form of motion pictures?
Yes, it is impossible. But as soon as I find such 'sprayable' LCD materials in a distant future, I am going to make cosmetics out of it. For now, maybe I can make just an LCD mask with flexible LCD like this.
I hope they are not too expensive for hobby projects....
Monday, April 29, 2013
Automated Piano Lesson with Embeded Systems
The basic idea goes like this: install one LED on each Piano key and turn each LED on/off to show which key to press down for each note in a song. The implementation involves an Android Phone, IOIO Board, and an LED module. I thought I was the only one who came up with the idea but it turns out there was a startup company based on this idea. Booohh
Android cannot control shift registers by directly sending out bits. Intermidiary is needed so the system like IOIO board is needed. The project is nearly done so I will post a youtube video of me playing piano with the LED module. Standard music media format MIDI is parsed within anroid phone to send bits to the shift registers. This can be done with external java library found by googling.
Wednesday, April 24, 2013
Python Powered Bible Reading
Previously I made a python script to parse and analyze the Bible. So I launched it into a web application serving my church: if you submit your email address, everyday the web app sends HTML email containing daily bible verses.
Sunday, April 7, 2013
Flattery Generator
I used some JQuerry, AWS, and Django to implement this..
http://ec2-50-19-51-195.compute-1.amazonaws.com/complement/












