Wish List 0

Cjmcu 93 Mlx90333 Non Contact Joystick Rocker Sensor Absolute Position Digital 3D Angle For Arduino

Rs. 785.00 Rs. 942.00

-CJMCU-93 is a unmarried-chip sensor IC with tri-axis ™ technology Tria Äis. , Which can sense any magnet moving round it.
-This makes the design of a new technology of non-contact joystick role sensor is frequently less difficult to meet the automotive, industrial and different programs.

-The MLX90333 tri-axis ™ Hall sensor senses each the vertical and the magnetic subject parallel to the chip surface.

Feature:

-Absolute angle and role of non-contact 3-dimensional sensor
-Simple and effective magnetic layout
-Three-Axis ™ Hall Technology: Non-Contact Hall Technology
-One chip detects the magnetic area electricity in three guidelines
-Programmable linear switch characteristics (α, β)
-Selectable analog (ratio), PWM, serial protocol
-Angular resolution of 12Bit in 360 degrees - 10Bit angular thermal accuracy
-forty-digit ID card wide variety
-Self-diagnostic feature
-Single Chip - SO8 Package RoHS Compliant
-Dual-chip (fully redundant) - RoHS-compliant in TSSOP16 bundle"

SPECIFICATIONS:
DATA VIA  SPI
VCC       5v
GND       GND
SS        SLAVE SELECT PIN D10 on Uno
OU1       MISO PIN PIN 12 on Uno
OU2       SCLK PIN 13 on Uno
OVERVIEW:
Logic Level  : 5vdc tolerant        
VCC              : 5vdcCommunication protocol  : SPI
Angular resolution of 12Bits in 360 degrees

PACKAGE INCLUDES:

1 PCS x Cjmcu 93 Mlx90333 Non Contact Joystick Rocker Sensor Absolute Position Digital 3D Angle For Arduino


// SOURCE CODE TAKEN FROM BELOW LINK

//http://arduinolearning.com/code/arduino-mlx90393-magnetic-field-sensor-example.php

//Distributed with a free-will license.

// Use it any way you want, profit or free, provided it fits in the licenses of its associated works.

// MLX90393

// This code is designed to work with the MLX90393_I2CS I2C Mini Module available from ControlEverything.com.

// https://www.controleverything.com/products

#include<Wire.h>

 

// MLX90393 I2C Address is 0x0C(12)

#define Addr 0x0C

 

void setup()

{

// Initialise I2C communication as MASTER

Wire.begin();

// Initialise serial communication, set baud rate = 9600

Serial.begin(9600);

 

// Start I2C Transmission

Wire.beginTransmission(Addr);

// Select Write register command

Wire.write(0x60);

// Set AH = 0x00, BIST disabled

Wire.write(0x00);

// Set AL = 0x5C, Hall plate spinning rate = DEFAULT, GAIN_SEL = 5

Wire.write(0x5C);

// Select address register, (0x00 << 2)

Wire.write(0x00);

// Stop I2C Transmission

Wire.endTransmission();

 

// Request 1 byte of data

Wire.requestFrom(Addr, 1);

 

// Read status byte

if(Wire.available() == 1)

{

unsigned int c = Wire.read();

}

 

// Start I2C Transmission

Wire.beginTransmission(Addr);

// Select Write register command

Wire.write(0x60);

// Set AH = 0x02

Wire.write(0x02);

// Set AL = 0xB4, RES for magnetic measurement = 0

Wire.write(0xB4);

// Select address register, (0x02 << 2)

Wire.write(0x08);

// Stop I2C Transmission

Wire.endTransmission();

 

// Request 1 byte of data

Wire.requestFrom(Addr, 1);

 

// Read status byte

if(Wire.available() == 1)

{

unsigned int c = Wire.read();

}

delay(300);

}

 

void loop()

{

unsigned int data[7];

 

// Start I2C Transmission

Wire.beginTransmission(Addr);

// Start single meaurement mode, ZYX enabled

Wire.write(0x3E);

// Stop I2C Transmission

Wire.endTransmission();

 

// Request 1 byte of data

Wire.requestFrom(Addr, 1);

 

// Read status byte

if(Wire.available() == 1)

{

unsigned int c = Wire.read();

}

delay(100);

 

// Start I2C Transmission

Wire.beginTransmission(Addr);

// Send read measurement command, ZYX enabled

Wire.write(0x4E);

// Stop I2C Transmission

Wire.endTransmission();

 

// Request 7 bytes of data

Wire.requestFrom(Addr, 7);

 

// Read 7 bytes of data

// status, xMag msb, xMag lsb, yMag msb, yMag lsb, zMag msb, zMag lsb

if(Wire.available() == 7);

{

data[0] = Wire.read();

data[1] = Wire.read();

data[2] = Wire.read();

data[3] = Wire.read();

data[4] = Wire.read();

data[5] = Wire.read();

data[6] = Wire.read();

}

 

// Convert the data

int xMag = data[1] * 256 + data[2];

int yMag = data[3] * 256 + data[4];

int zMag = data[5] * 256 + data[6];

 

// Output data to serial monitor

Serial.print("Magnetic Field in X-Axis : ");

Serial.println(xMag);

Serial.print("Magnetic Field in Y-Axis : ");

Serial.println(yMag);

Serial.print("Magnetic Field in Z-Axis : ");

Serial.println(zMag);

delay(500);

}

15 days

Write a review

Please login or register to review