GSoC 2014 PyBBIO - Week 1 Status

164 views
Skip to first unread message

Rekha Seethamraju

unread,
May 21, 2014, 12:08:35 PM5/21/14
to beaglebo...@googlegroups.com

  • Accomplished
        Wrote a C extension for sysfs entries and added it to the library.

  • This week :
        Working to debug a Stepper Motor library that agwatic contributed.
        Work on the SPI library
        change capemanager to use the C extension I previously wrote

Rekha Seethamraju

unread,
May 28, 2014, 12:21:53 PM5/28/14
to beaglebo...@googlegroups.com

WEEK 2


  • Accomplished

    I wrote the I2C documentation.
    Debugged the stepper library.
    figured out the Device Tree

  • Issues

               We decided to do the eQEP driver first and then the SPI.
               The stepper motor driver IC I have doesn't work so couldn't test it although the output voltage levels were fine.                        Anyway we figured that sysfs for GPIO is not fast so its not priority.
               Since cape_manager.py is called only once during setup Alex said there wouldn't be a point do a C extension for it. Anyway the unloading the overlay part  is too much work with all the string manipulation.

  • Next Week

    The eQEP driver and getting started on SPI.

  • So the week after I have exams (from June 4th) so I'm not working that week since I only have a day and a half in between exams.

Rekha Seethamraju

unread,
Jun 4, 2014, 11:32:41 AM6/4/14
to beaglebo...@googlegroups.com


  WEEK 3
  • Accomplished
    •  eQEP library (almost; testing hasn't been done
    • figured out python modules 
  • issues 
    • I didn't have the new kernel that has the eQEP driver so testing hasn't been completed.  
    • haven't figured out the distance, speed etc calculations which have to be added to the library
  • Next week 
I have exams going on now which will be almost over by this time next week. But the week after that when I'm Finally free it'll be the testing and SPI. 
  


Rekha Seethamraju

unread,
Jun 11, 2014, 2:15:41 PM6/11/14
to beaglebo...@googlegroups.com

I had exams this week so I didn't get anything done.

Agenda for Week 4:

  • SPI library
  • get gstreamer to work with PyBBIO
  • eQEP driver is not working so fix that (though Alex is doing that) 

Rekha Seethamraju

unread,
Jun 18, 2014, 12:08:19 PM6/18/14
to beaglebo...@googlegroups.com

WEEK 5
  • Accomplished
    •     SPI library is done.
    •    I figured out what to do for the camera library.
    • Issues
      • I still had 1 exam left so lost 2 days on that. But I'm done now.
      • The SPI IC I have is a surface mount. So I'll go to college and get it running by soldering wires tomorrow.The SPI IC I have is a surface mount.
    • Next Week

      SPI example
      Camera Library which involves writing a program to capture the video from the driver and setting up the gstreamer pipeline

    Rekha Seethamraju

    unread,
    Jun 25, 2014, 12:05:49 PM6/25/14
    to beaglebo...@googlegroups.com


    WEEK 6
    • Accomplished
      • Redesigned the camera library.
    • issues 
      • The SPI sensor got burnt. Thankfully, I have an extra one so I soldered that have to test it now.
      • The python v4l2 library had no documentation. Either way we decided to use gstreamer for that part too 
    • Next week 
    Finish the camera library and SPI example.

    Rekha Seethamraju

    unread,
    Jun 25, 2014, 12:09:55 PM6/25/14
    to beaglebo...@googlegroups.com


    The Camera Library will look something like:

    class Webcam(object):
      def __init__(self, camera_num=0):
        self.device = '/dev/video%i' % camera

      def saveImage(self, filename):
        ...
        
      def startRecording(self, filename):
        ...
        
      def stopRecording(self):
        ...
        
      def startStreaming(self, port):
        ...

      def stopStreaming(self):
        ...

    ---------

    # Usage:

    cam0 = Webcam(0)
    cam1 = Webcam(1)

    pinMode(GPIO1_16, INPUT, PULLUP)
    attachInterrupt(GPIO1_16, FALLING, lambda: cam0.saveImage('pic.jpg'))

    ------------

    # BBIOServer stream integration:

    cam0.startStreaming(5000)
    page.addVideoStream(5000, url='localhost')

    Rekha Seethamraju

    unread,
    Jul 2, 2014, 11:53:22 AM7/2/14
    to beaglebo...@googlegroups.com
    WEEK 6
    • Accomplished
      • SPI library done. 
      • Camera program where gstreamer works for only Logitech C920
    • issues 
      • SPI example - The temperature sensor works for reading temp but not for setting up the interrupt options which I just figured how to do. So I'll finish it by tonight.
      • Camera - The gstreamer program that I wrote only works for Logitech C920. We decided to try OpenCV to record and then add that to the pipleline to stream. The openCV hasn't been tried yet. That's for this week.
    • Next week 
      • finish the SPI example and documentation. 
      • add an I2C example. 
      •  finish eQEP library now that its tested.
    Message has been deleted
    Message has been deleted
    Message has been deleted

    Rekha Seethamraju

    unread,
    Jul 16, 2014, 12:09:29 PM7/16/14
    to beaglebo...@googlegroups.com
    WEEK 7
    • Accomplished
      • library for using Sparkfun's Phant almost done.(internet's not working properly so I haven't pushed it yet.)
      • Camera library - video streams to html. 
      • I2C example - accelerometer MMA7660 library reads x,y,z values 
      •  eQEP and SPI example - ADT7310 libraries are fully working now
    • Issues 
    have to figure out taking a pic from gstreamer 
    •  Next week 
    • finish camera, PhantStream and MMA7660 libraries.

    Rekha Seethamraju

    unread,
    Jul 23, 2014, 12:02:08 PM7/23/14
    to beaglebo...@googlegroups.com
    WEEK 7
    • Accomplished
      • Camera library - initial program to record and stream video and take a snapshot done.
      • I2C example - accelerometer MMA7660 library is mostly done. Should be completed by friday. finished the x,y,z values. tap,orientation and shake detection still needs work.
    • Issues 
      • Had to figure out how to stop the pipeline.  
      • The bbb didn't recognise my i2c accelerometer for awhile. Then it suddenly started           working again today morning.  
    • Next week 
      • finish camera library - add to BBIOServer. cleanup
      • MMA7660 library. get names right and cleanup code.
      •  documentation for phant, camer and mma7660
     
    Message has been deleted

    Rekha Seethamraju

    unread,
    Aug 6, 2014, 11:47:48 AM8/6/14
    to beaglebo...@googlegroups.com
    Lost the week count
    • Accomplished
      • Camera library done - takes snapshots and streams video. 
      •  Camera integration with BBIOServer.
      • I2C example - accelerometer MMA7660 library done and merged (Wiki page to be updated).
    • Issues 
      • Had numerous issues with the camera and gstreamer. Documentation was too scattered. People at #gstreamer helped quite a bit in figuring out function names in python.
      • record still doesn't work. Have to find a way to change the location property when pipeline is running. So we decided for now to release it with steaming and take snap shot. give it a break and then finish record. 
    • Next week 
      • camera example with pir motion sensor and email. (I'll finish this tonight)
      • MMA7660 library's wiki page. 
      • more examples using multiple sensors. haven't got scenarios right yet.


    Rekha Seethamraju

    unread,
    Aug 13, 2014, 12:17:21 PM8/13/14
    to beaglebo...@googlegroups.com
    Last Week
    • Accomplished
      • re-did the camera library to not record(
      • Examples done.
    • Issues 
      • 13 second delay in streaming. Haven't fixed that
    • To be done
      • Wiki pages for WebCam and accelerometer. 
      •  Video of examples working and final presentation video.

    Jason Kridner

    unread,
    Sep 16, 2014, 5:01:37 PM9/16/14
    to beaglebo...@googlegroups.com
    Do you have the link to the final video?
    > --
    > You received this message because you are subscribed to the Google Groups
    > "BeagleBoard GSoC" group.
    > To unsubscribe from this group and stop receiving emails from it, send an
    > email to beagleboard-gs...@googlegroups.com.
    > For more options, visit https://groups.google.com/d/optout.

    Jason Kridner

    unread,
    Sep 16, 2014, 5:04:35 PM9/16/14
    to beaglebo...@googlegroups.com
    Sorry, forgot these were all posted to G+ if not here.

    shubhangi....@itbhu.ac.in

    unread,
    Jan 6, 2015, 8:06:41 AM1/6/15
    to beaglebo...@googlegroups.com
     Hello Rekha,
     I would like to contribute towards the development of PyBBIO library. I can work towards feature addition and bug fixing for the library. Hope you'll help me in my endeavor.
     Thanks  

    Rekha Seethamraju

    unread,
    Jan 9, 2015, 12:39:38 PM1/9/15
    to beaglebo...@googlegroups.com

    Sure. :)

    --
    Reply all
    Reply to author
    Forward
    0 new messages