Saturday, 16th August 2014

Today since morning I am on Python code for Sound and waves GUI. Its almost ready… 🙂

Tried various experiments with the new python programs written for plotting real-time graphs to test for errors and did necessary corrections. Also gave finishing touch to programs and added to Git repo. Work of writing documents for experimental procedures is taking positive shape.  After the finishing the required coding part I will focus more on the documentation part.

Monday 18th August is the firm ‘pencils down’ date. Therefor I am working on the programs to give them the final form.

 

 

 

Friday, 15th August 2014

Continued working on python codes for various experiments….. Conducted trials with python code for plotting real-time graphs.

Did various experiments on linear air track to study concepts like momentum, collision, motion on incline etc.

 

airtrack

Used toy cars for motion experiments. this will be a low cost solution for experiments in mechanics where air track is not available…:)

 

car

In an experiment with pendulum using motion sensor we could get the desired result. Now pendulum experiments can be done using three different sensors

  • light sensor – Photo-gate
  • motion sensor – srf05 ultrasonic module
  • DC motor

These are screen shots of motion of pendulum with srf05 module

pend pend2

Thursday, 14th August 2014

Work on sound experiments….giving finishing touch.

The sine wave generator devised using ATTINY85 mcu by Ajith Sir is really very helpful in conducting sound experiments.

We could get a fine sine wave using ATTINY module

 

sin

Two ATTINY modules are working perfectly for producing lissajous figures.

attinylissa

lis3

Tuesday, 12th August 2014

Today I could complete documentation of experiments with linear air track. Also gave finishing touch to python codes by adding gettext module for internationalization.

The gettext module provides internationalization (I18N) and localization (L10N) services for your Python modules and applications. It supports both the GNU gettext message catalog API and a higher level, class-based API that may be more appropriate for Python files. It allows you to write your module and application messages in one natural language, and provide a catalog of translated messages for running under different natural languages.

Thanks to Georges Khaznadar who helped us with internationalization. The following code is added to all the programs.

”’

import gettext
gettext.bindtextdomain(“expeyes”)
gettext.textdomain(‘expeyes’)
_ = gettext.gettext

”’

Now need to work on pages for individual experiments and also the Common GUI for sound and mechanics.

 

Monday, 11th August 2014

pencil down1

Today is the [GSoC 2014] Suggested ‘pencils down’ date, therefore this week I will be working on scrubbing the   code, improving  documentation and completing integrated GUIs for mechanics and sound experiments. I will also complete separate pages for all the experiments on the blog.

The Firm ‘pencils down’ date is ob 18th August 2014. therefore before Sunday 17th August I will try and give finishing touch to everything.

Worked on some python programs and changes committed to Github. Tried experiments on linear air track with new code developed for plotting real-time graphs. things have become amazingly simple and many concepts in mechanics can be easily demonstrated with our set-up.

Saturday, 9th August 2014

Let’s generate some signals!

Here is our tiny sine wave generator for sound and waves experiments.

attiny1

The ATTINY85 based board which can take square wave as input and generates sine wave. In the picture- board and the completed module.

ATTINY 85 is the high-performance, low-power Atmel 8-bit AVR RISC-based microcontroller combines 8KB ISP flash memory, 512B EEPROM, 512-Byte SRAM, 6 general purpose I/O lines, 32 general purpose working registers, one 8-bit timer/counter with compare modes, one 8-bit high speed timer/counter, USI, internal and external Interrupts, 4-channel 10-bit A/D converter, programmable watchdog timer with internal oscillator, three software selectable power saving modes, and debugWIRE for on-chip debugging. The device achieves a throughput of 20 MIPS at 20 MHz and operates between 2.7-5.5 volts.

The ATTiny85! In the DIP configuration,  is about 9mm x 9mm, can be programmed using the Arduino IDE, runs on as low as 3.3V at pretty tiny amperages. Here is the pin configuration…

We programed it using USBASP programmer from our microhope project.

mh-usbasp

After programing the chip, now we can use it with ExpEYES as a sine wave generator. The connections are made like this….

attiny-connections

pin1 is RESET pin2 is input where SQR can be connected and pin 3 is the output. The module can be powered usent external USB or with OD1 as shown in the pic.

To reset pin 1 (marked as P1) should be connected to GND for a fraction of second. This is useful to obtain lissajous figures for which two modules can be used. Both the modules can be powered with single USB.

attinylissa

We also wrote a program in python for lissajous figures.

Here is the amazing result…..

lis2 lis1lis3

I also worked on few python programs to finalize them. Now almost all the programs are ready.

Here is my today’s activity on Github

Friday, 8th August 2014

Joy of doing….experimenting n exploring……

It’s awesome to work here at IUAC ( Inter University Accelerator Centre) New Delhi.

Labs are open 27X7…. all the facilities are accessible….. Have a new idea? ….work on it ….. develope ….design… get it fabricated in the workshop….test it in the laboraty….. modify…redesign….assemble …and you are done!!! Its awesome to see something virtual from your thoughts ….to a real thing on your table….

Developing new low cost science experiments……… to put it in simple words…bringing the cost of quality lab apparatus from few Laks to few hundreds………

But that’s not the only thing……It all open source……FOSS is the best thing that has happened in couple of centuries…..
#ExpEYES #FOSSASIA   #GSoC

Today we did a lot of coding work. I had already written python program to plot fetch data using sensors through ExpEYES and then plot the graphs. We re-wrote some of these programs to obtain graphs in real time. And the results are amazing.

Modified and finalized the following python programs…

  • pendulum-echo.py : Program to study oscillations of a pendulum using ultrasonic sensor sfr05 (position detector) by plotting real-time graph
  • coupled-pend-real-time.py : Program to plot oscillations of TWO coupled pendulums in real-time
  • motion-airtrack-echo.py : Programe to plot position time graph for vehicles moving on linear air-track
  • motion-compare-airtrack-echo.py : This program allows to plot position-time graph af motion of a vehicle on an air track.
    One can take multiple trials and view all the plots. this can be used to compare different aspects of motion
    like velocity, acceleration etc…
  • motion-two-srfecho.py : This program allows user to use TWO motion sensors (srf-05 modules) and plot both the graphs
    in real-time. This can be used for studying collisions, conservation of momentum etc…on air track or also frictionless track.

Sill working on programs for sound experiments….. Hopefully tomorrow, it will be done…

Here is a link to my Github repo..today’s work

Thursday, 7th August 2014

Today in the morning, I reached IUAC (Inter University Accelerator Cenre ) New Delhi. Started working on the experiment program codes with Ajith sir. We got the air-track set-up for doing the mechanics experiments. Repeated some of the motion related  experiments to study the changes required.

We modified the program for using srf module to plot position time graph. Now we can fetch the position-time data and store it in a file and then plot the p-t, v-t and a-t graphs.

We wrote another program to plot this graph in real -time. This program enables students to see the graph in real time as the glider moves on the air track. Here is the experimenta set up…

airtrack

 

We also set-up a pendulum experiment using a thick metal block and suspended it using  long strings to have a pendulum of large time period.

The program is written to plot the position of pendulum using motion sensor. Committed the same to Git repository. The plot shows the smooth sine curve of oscillations.

IMG_20140807_173110

Tried the experiment with motion sensor using toy cars. this can be an amazing demonstration experiment for highschool students.

toy car

Tomorrow we will work on sound experiments and finish the required programs.

 

 

 

Wednesday, 6th August 2014

Not much work today. Tonight I will be travelling to delhi and will be staying for four days, working on my project in Ajith sir’s teaching lab at IUAC.

Since a lot of work to be done in giving  finishing touch to all the experiments and the code, I have taken leave from college. It will be a good idea to sit at one place where all the facilities are available and work on the project.

I have taken all the required tools, sensors and ExpEYES kits.  We will be working on the programs that I have developed so far and do the necessary modifications.