I started planning the circuitboard and soldered the headers. I'm making it modular where I can unplug any of the main components. I'm not going to solder the connections for the ESP8266 until I'm sure that it works. I'm also going to hold off on the 8 channel mux connections because I'm not 100% sure it's working until I have all 8 FSRs plugged into it. If you have just one plugged in, it goes a little weird. I'm not sure if it's advisable to have the S0-S3 pins in the opposite order from the initial examples, but it is easier to solder this way. There is no space to add a level shifter, so if I do alter it to a 5V arduino, I'll have to make a new circuit board.
0 Comments
I took a break from trying to troubleshoot the ESP8266 and started planning out my circuit board. I started having more troubles with the 16 channel analog Mux. I realized that if I used the same 8 channel mux as TRAVIS II, that I'm much more familiar with, and read the remaining analog pins on the arduino, then I still have the same number of analog sensors that I initially wanted. So I altered the arduino code for that. Maybe I'll look at the 16 channel Mux again in the future.
I tested the IR with my quad level shifter. It's supposed to be able to shift the voltage both ways, 5V to 3.3V and 3.3V to 5V. But I couldn't figure out how to shift it up to 5 for the IR sensor. Then I realized that if I got a 5V arduino pro mini, the only issue would be the LIS3DH and the ESP8266 which are only 3.3V. I decided to try the LIS3DH with my Arduino Uno, hooked up to the 5V and the level shifter. That was a mistake. I didn't hook it up right either and completely fried my accelerometer. Now I have to wait for a new one in the mail..... I also ordered a different level shifter that Sparkfun specifically has a tutorial on how to connect the LIS3DH to it. That way if I do switch over to the 5V Arduino, then I'm less likely to mess up. For now I'll get by with 3V only and the IR sensor will just not work ass well as it could. I decided I'm fine with the ADXL337. One thing it doesn't show clearly is when the accelerometer is turned all the way upside down. Otherwise it's workable.
I integrated it with the Mux and the TCS34725. When I was testing it, two things that were weird happened. 1) My computer refused to properly upload sketches to any Arduino Pro Mini. I restarted my computer and it then uploaded sketches fine for a little while. But as I was watching it print data, after a little while it stopped. If I restarted the serial monitor, it would start printing data then again it would stop. I tried unplugging then plugging it back in again, and then it stopped properly uploading sketches. I think this must be something with the FTDI and drivers. I've heard of people having issues with it with Mac. If I can't get it working again, I'll see if I can get it to work on my old Windows computer. But it will take a bit to transfer everything I need onto my Windows to get it going. For now I'm back to testing with my Unos. 2) Max MSP does not like printing out lists from the arduino that are larger than 19. If for example I have the arduino printing a list of 22 bytes, Max would split the list into two: 18 byte list, then 4 byte list. This is not right, especially since the zl object's max list length is 256. I think I'm going to troubleshoot this later because it is much easier for me to fix Max than it is to fix arduino codes. And I still need to finish the Arduino codes. Edit: I'm not liking the NRF24l01 at all anymore. I just want the ESP8266 to work... if I can only just get it working, then I can go back to the other accel too... |
Welcome!If you are looking for a summary for my Masters thesis, it is here. Archives
November 2022
Categories |