• 0
Asha Devi

Interfacing PMOD Wifi with PMOD ALS - Zedboard (Digilent)



I am trying to interface PMOD Wifi with PMOD ALS on a Digilent Zedboard. The idea is to display the ALS values on the HTML Page(default PinsPage.htm) every few seconds. I am stuck with the Application Code. I have checked the code which is used to read switches data to read the LED state and turn it on or off. Do I need to write code similar to that inorder to interface the ALS sensor and display its values on the HTML Page. Or is there any other method to achieve the same. Kindly suggest a way forward.

I've attached the block diagram for reference.

Thanks in advance.


Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi @Asha Devi,

Welcome to the Digilent forums!

You will need to incorporate the two libraries. I have not altered the Pmod WIFI example to work with another IP Core. I would first try using the Pmod WIFI example and alter it to use the ALS_read function from the Pmod ALS library . You will need to use the ALS_begin and initialize a PmodALS variable as well.  

best regards,


Share this post

Link to post
Share on other sites
  • 0

Hi @jpeyron,

Apologies for the delayed response.

I have gone through the HTMLGetPins.cpp file and created a similar one for ALS called HTMLGetAls.cpp
I am getting few errors(please find the screenshot). 

These are the sequence of steps I've followed:

1. Created a GET request to PMODALs.htm (A dynamically generated page, similar to PinsPage.htm)
   " static const char szHTMLGetPMOD[]       = "GET /PMODALS.htm "; " in deWebIOServerSrc.cpp

2. Add HTML Page using the existing function (similar to ComposeHTMLGetPINS)
  " AddHTMLPage(szHTMLGetPMOD,     ComposeHTMLGetALS); "  in deWebIOServerSrc.cpp

3. Created HTMLGetAls.cpp to get ALS data (light value).


Attached Files Content:

1. HTMLGetAls.cpp - cpp file to read als data and display on web page(auto refresh every few seconds)
2. HTMLGetPins.cpp - auto generated cpp file. I've used this file as a reference to create HTMLGetAls.cpp
3. deWebIOServerSrc.cpp - controls the entire flow of the process
4. HTTPServer.h - contains the structure CLIENTINFO_T which controls the sequence of events
5. PmodALS.c - Used for ALS
6. PmodALS.h - Used for ALS


Thanks for support.


Asha Devi


HTMLGetAls.cpp HTMLGetPins.cpp deWebIOServerSrc.cpp HTTPServer.h PmodALS.c PmodALS.h

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now