Angle 3 click
PID: MIKROE-2755
Angle 3 click carries the AK7451, a magnetic rotational angle sensor. The click is designed to
run on a 5V power supply. It communicates with the target microcontroller over SPI interface,
with additional functionality provided by the INT pin on the mikroBUS™ line.
Angle 3 click can be used for non-contact rotation angle measurement.
AK7451 features
The AK7451 is a magnetic rotational angle sensor with a built-in Hall element.
By detecting the magnetic field vector parallel to the IC surface, the AK7451 outputs the
absolute angular position of the magnet and the relative angular position.
Through the transverse magnetic field detection method, using a magnetic flux concentrator, the
AK7451 has excellent axial misalignment immunity.
How the click works
The host microcontroller sends the request for measuring the angle rotation via the SPI interface.
The AK7451 sensor responds with the measured data.
There are 3 output pins on board (A, B, Z) where the IC outputs pulses for the encoder feature
and the 3 output pins (U, V, W) where the IC outputs pulses for the BLDC motor drive.
Specifications
Type
Magnetic
Applications
Suitable to various motor drive and encoder applications
On‐board
modules
AK7451 zero latency angle sensor
Key Features
12bit angle resolution, less than ±0.6 deg. angle accuracy at 25 ºC, maximum tracking
speed : 333 rps (20,000 rpm)
Interface
SPI
Input Voltage
5V
Click board size M (42.9 x 25.4 mm)
Pinout diagram
This table shows how the pinout on Angle 3 click corresponds to the pinout on the mikroBUS™
socket (the latter shown in the two middle columns).
Notes
Pin
Pin
Notes
NC
1
AN
PWM
16
NC
NC
2
RST
INT
15
INT
CS
3
CS
TX
14
NC
Interrupt
Chip select
SPI clock
SCK
4
SCK
RX
13
NC
Slave data out for SPI SDO
5
MISO
SCL
12
NC
Slave data in for SPI SDI
6
MOSI
SDA
11
NC
NC
7
3.3V
5V
10
+5V
Power supply
GND
8
GND
GND
9
GND
Ground
Ground
Programming
Code examples for Angle 3 click, written for MikroElektronika hardware and compilers are
available on Libstock.
Code snippet
This code demonstrates the usage of the Angle 3 click driver on an STM ARM board. After the
initialization, data from the click is being read, converted, and displayed via UART, in a loop.
01 // Main function.
02 void main()
03 {
04
uint16_t angleData;
// Angle data read from Angle3.
05
uint16_t angleDataDegrees; // Angle data converted to degrees.
06
uint8_t buffer[20];
// Buffer for characters to send via UART.
07
08
// Initialize the system.
09
systemInit();
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 }
// First write to UART.
UART1_Write_Text("Start");
UART1_Write(13);
UART1_Write(10);
// Main loop.
while( 1 )
{
// Some delay.
Delay_ms(1000);
// Read angle data and convert.
angleData = ANGLE3_readAngleData();
// Check the error bit.
if ((angleData & _ANGLE3_ERR_BITMASK) == 0)
{
// Send error message via UART.
UART1_Write_Text("
error");
// Continue with next loop iteration.
continue;
}
// Convert angle data to degrees.
angleData &= 0x0FFF; // Actual data is in the lower 12 bits.
angleDataDegrees = ANGLE3_calculateDegrees(angleData);
// Send angle data via UART.
IntToStr(angleDataDegrees, buffer);
UART1_Write_Text(buffer);
}
https://shop.mikroe.com/angle‐3‐click 9‐29‐17
很抱歉,暂时无法提供与“MIKROE-2755”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格
- 1+175.67102
- 5+172.15114
- 国内价格 香港价格
- 1+198.757921+24.73334