Getting Started With ChipKIT.pdf

0 views
Skip to first unread message
Message has been deleted

Myong Killings

unread,
Jul 12, 2024, 9:38:51 PM7/12/24
to tafennuvon

I have written a Web server that was working using a UNO32 with an Arduino Ethernetshield. I decided to switch to the MAX32 and MAX ethernet shield to get more speed through the ethernet because the SPI port was kind of slow. After changing the code to use the Digilent ethernet libraries I got it working fairly quickly.

Getting Started with chipKIT.pdf


Download File - https://urlca.com/2yN0hd



I did have to play with delays before closing the connection to prevent buffered data from getting cut off early. I think the data gets sent to the Ethernet code and its in the middle of transmitting and there is no way (that I'm aware of) to know if all the data has been transmitted. Then if the client stopped the remaining data never makes it to the browser.

When I refer to a connection I mean when navigating betweenHTML pages on my Web site or revisiting a previously viewed page.I realize the browser actually connects or requests resources to such as pictures, PDF etc after the initial HTML is loaded but that never seems to be an issue.The pages seem to load completely. But after a few successful connections theserver.available() stops returning a Client. This only seems to occur when switching between pages or clicking on a link.

The HTML is read off an SD card and sent to the client browser.The page is just a few lines of text and it loads in a fraction of a second.My Web site pages have a lot more text, a few links and pictures. Some of themore complex pages may take up to 5 seconds to load. The problem I'm havingseems to have something to do with the MAX32 Ethernet libraries.Almost identical code ran fine with the Arduino ethernet shield and libs.

You should be seeing numbers from 0 to 4000. The QTR-RC sensors have outputs that can be read by digital pins, but they output is an analog reading of the reflectance represented by the duration of the pulse (you get a lot more information than just 0 or 1).

Well, to start with, some details could help. What readings are you getting? How do you have the sensor mounted and what voltage are you powering it at? What is your black surface and what is your white surface? Can you post a picture of your setup?

b1e95dc632
Reply all
Reply to author
Forward
0 new messages