Giter Site home page Giter Site logo

meridianinnovation / mi_xcam_formalrelease Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 8.53 MB

[Meridian Innovation Limited]Thermal Sensor SDK library on Keil

C 97.44% Assembly 0.28% C++ 0.14% HTML 0.01% Rich Text Format 2.14%
xcam keil thermal-imaging thermal-camera mi-xcam

mi_xcam_formalrelease's Introduction

MI_XCAM_formalRelease

This is the user application project of using thermal sensor XCAM from Meridian Innovation Limited. There are two series MCU: M480 & N329-. XCAM is running with USB Video Device Class(UVC), that capbale of streaming video like webcams without installing any specific drivers.

Please read XCAM_Documentation.docx for more details.

SDK Version: Release V3.08 181205

API

ThermalSensor.h

	void			M480_InitSensor(void);

	void			M480_OpenSensor(void);

	void			M480_StartSensor(void);

===============================================================================

	void			N329_InitSensor(void);

	void			N329_OpenSensor(void);

	void			N329_VideoStreaming(void);

	int			N329_Interface_init (unsigned short interface);

	void			N329_UartDataValid_Handler (UINT8* buf, UINT32 u32Len);

MI_XCAM.h

	void 			InitI2C(unsigned char mode);

	void 			HighDensSequentialRead(unsigned short address,unsigned char* data, unsigned short numbytes);

	void 			HighDensPageWrite(unsigned short address,unsigned char* data, unsigned short numbytes);



	void 			ReadCalibDataN(void);

	void			InitSensorDev(unsigned short TN);

	void 			InitMBITTRIMN(unsigned char user);

	void 			InitBIASTRIMN(unsigned char user);

	void 			InitBPATRIMN(unsigned char user);

	void 			InitPUTRIMN(unsigned char user);

	void 			InitCLKTRIMN(unsigned char user);



	unsigned int 		CalcTO(unsigned int TAmb, signed int dig, signed long PiC, unsigned int dontCalcTA);

	void 			Create_color_table(RGB_COLOR_INFO_T RGB_ColorPalette[],YUV_COLOR_INFO_T YUV_ColorTable[]);

	void	 		DeadPixelMasking (DEADPIXEL pixel);

	FRAMEPOIS 		GetFramePOIs (void);

	void 			GetImageData (void);

	int			GetTargetPixelIndex(void);

	unsigned short		GetTemp(unsigned int x, unsigned int y);

	unsigned short		GetTempDisplay(void);

	void 			ResetFramePOIs(void);

	void			SetTargetPixelIndex(int index);

	void			SetTempDisplay(unsigned short flag);

	unsigned int		StartStreaming(int Mode, char Temps, char Stream);

Known Issues

  • Could not open file with correct existing file path

.\MI_Thermal\MI_XCAM_N329_SW_I2C.axf: error: L6002U: Could not open file ........\ThermalAPI_inC\example\demo\KEIL\demo_Data\N32901_SingleTask\ThermalSensorAPI_N329.lib: No such file or directory

Soultion: Probably it is because the path is too long, which may cause problem. Relocate the file to somewhere with shorter path.

  • (N329) Can I output Uart/Huart data without opening XCAM?

Solution: Move "TempCal()" to outside the usb connected checking statement "if (usbdStatus.appConnected == 1)".

  • How can I remove temperature display?

Solution: Control the blackets and Temperature display On/Off inside if(GetTempDisplay() == 1) {...}

  • How to read temperature output from UART?

First send UART command VCMD=DAT/AMT/TMP. The output is shown in Hex format. E.g: C9(HEX) = 201(DEC) = 20.1 degree / FFFFC9(HEX) = (FFFFFF - FFFFC9)54(DEC) = -5.4 degree Further details please refers to the documentation under UART/HUART Interface.

  • Temperature value format

Row * Col * 2 bytes

  • Temperature accuracy

The temperature is not fine tuned at prototyping stage. The accuracy is +-1 degree roughly.

  • How to change color palette?

The color palette is controlled by macros under COLOR_ADAPTIVE. You can activate adaptive mode with "#define COLOR_ADAPTIVE" in MI_XCAM.h. You can define which color palette is using in ThermalSensor.h.

  • What is the frequency(fps) the XCAM can run?

On N329- Single: 2-8 fps Dual: 3-6 fps

mi_xcam_formalrelease's People

Contributors

jacksonlau-mi avatar yflauaa avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

wjdupsmj-1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.