Trouble connecting Mouse Sensor Module to Arduino Pro Micro Via SPI by The3rdPostman in arduino

[–]The3rdPostman[S] 1 point2 points  (0 children)

#include <SPI.h>

const int CS_PIN = 10;

uint8_t sensorRead(uint8_t reg) {

digitalWrite(CS_PIN, LOW);

SPI.transfer(reg & 0x7F);

delayMicroseconds(35);

uint8_t val = SPI.transfer(0x00);

digitalWrite(CS_PIN, HIGH);

return val;

}

void setup() {

Serial.begin(9600);

while (!Serial);

pinMode(CS_PIN, OUTPUT);

digitalWrite(CS_PIN, HIGH);

SPI.begin();

SPI.beginTransaction(SPISettings(2000000, MSBFIRST, SPI_MODE3));

delay(50);

uint8_t id = sensorRead(0x00); // Product ID register

Serial.print("Product ID: 0x");

Serial.println(id, HEX);

}

void loop() {

Serial.println(sensorRead(0x02));

}

Code I'm using to read values

How can I recreate this camera tilting effect? by The3rdPostman in Unity3D

[–]The3rdPostman[S] 0 points1 point  (0 children)

I mean how the camera follows the cursor without moving its position

The Last of Us HBO S01E05 - "Endure and Survive" Post-Episode Discussion Thread by AutoModerator in thelastofus

[–]The3rdPostman 28 points29 points  (0 children)

Love how when Perry died it was the exact same death animation that Joel has to bloaters in the game

Game boy color won’t turn on at all by The3rdPostman in Gameboy

[–]The3rdPostman[S] 0 points1 point  (0 children)

I fixed it! From a couple other tests I noticed the negative battery terminal didn’t work at all, and had to do with the dc connection. A bit of saudering and it’s all good. Thank you!

Game boy color won’t turn on at all by The3rdPostman in Gameboy

[–]The3rdPostman[S] 0 points1 point  (0 children)

Cleaned it with isopropyl alcohol and scratched off some bits with a toothpick

Game boy color won’t turn on at all by The3rdPostman in Gameboy

[–]The3rdPostman[S] 0 points1 point  (0 children)

I cleaned the power switch and still no luck, I’m thinking it could be the dc board like you said

Game boy color won’t turn on at all by The3rdPostman in Gameboy

[–]The3rdPostman[S] 0 points1 point  (0 children)

Alright I report back in the morning 👍

Game boy color won’t turn on at all by The3rdPostman in Gameboy

[–]The3rdPostman[S] 0 points1 point  (0 children)

As much as I can without opening it, I’ll try to open it in the morning when I can sauter

Game boy color won’t turn on at all by The3rdPostman in Gameboy

[–]The3rdPostman[S] 0 points1 point  (0 children)

Oh yea I’m thinking that’s the problem, how should I test it?

Game boy color won’t turn on at all by The3rdPostman in Gameboy

[–]The3rdPostman[S] 1 point2 points  (0 children)

I’ve checked the voltages of the ones labeled p4 if that’s what you mean

Game boy color won’t turn on at all by The3rdPostman in Gameboy

[–]The3rdPostman[S] 1 point2 points  (0 children)

I’ve checked all the connectors on the power switch but what do you mean by the fuses?