![]() Needed for native USB port onlyįor (int i=0 i>= 2 // Shift multi turn bits 2 as last 2 bits are singleTurn SPI.setClockDivider(SPI_CLOCK_DIV64) // 250kHz = 16 MHz / 64 put your setup code here, to run once: the sensor communicates using SPI, so include the library: Optical encoder sensor attached to pins 12 - 13: The following code does the readout by sending a character in the serial monitor screen of the arduino IDE. As shown on page 4 in figure 4 of the application note. The encoder can be read by connecting the pin 12 & 13 to an SN65LBC179Q and connect that to the encoder. I have an optical encoder: Broadcom AS38-H39E-B13S.ĪS38-H39E Series 39-Bit Energy-Harvesting Multi-Turn Absolute Encoder Application Note
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |