EBM015-TEST PROGRAM

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
joe nova
Posts: 9
Joined: Sun Mar 01, 2015 10:55 pm
Has thanked: 14 times
Contact:

EBM015-TEST PROGRAM

Post by joe nova »

Hi,

what to do for EBM-015 module and the PROGRAM TEST to the PIC16F1937, work with microcontroller Atmega 328P (AVR), someone help me?
besides using Flowcode AVR 6 and change the chip tab to build Atmega 328P

:roll:

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EBM015-TEST PROGRAM

Post by Benj »

Hello,

The example program should work for pretty much any target. Here is a program I created to try and help get you up and running. You will probably have to select each component on the panel and change the properties to match your specific hardware connections.
EBM015_Avr.fcfx
(7.42 KiB) Downloaded 238 times

joe nova
Posts: 9
Joined: Sun Mar 01, 2015 10:55 pm
Has thanked: 14 times
Contact:

Re: EBM015-TEST PROGRAM

Post by joe nova »

Dear Benj

As you said works well in the simulation, but when programming the chip atmega 328p, the software does not run, I put a oscilloscope on the clock pin and saw nothing, apparently has no clock.
Do you have any suggestions?
Thank you for your attention

:?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EBM015-TEST PROGRAM

Post by Benj »

Hello,

Could you post the program you have adapted for your hardware. Also do you have a schematic for your hardware?

Have you tried the one second flasher test? http://www.matrixtsl.com/wiki/index.php ... ED_flasher

joe nova
Posts: 9
Joined: Sun Mar 01, 2015 10:55 pm
Has thanked: 14 times
Contact:

Re: EBM015-TEST PROGRAM

Post by joe nova »

Dear Benj

Thank you for your commitment to help me,
The test with flascher Ok, you can see by the photos, since the tests with the EBM015_AVR and the test program was not well.
Perhaps the I2C peripheral, internal to the Atmega 328, is not being configured.
Attachments
EBN015_AVR.png
Other Test Program
(237.4 KiB) Downloaded 908 times
schematic_compass.png
schematic
(51.41 KiB) Downloaded 2406 times
Print_scopview1.png
Ed_Flasher
(223.86 KiB) Downloaded 908 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EBM015-TEST PROGRAM

Post by Benj »

Hello,

It looks like you are not using the EBM015 and are interfacing directly to the same sensor. You will need pull up resistors on the SDA and SCL pins. You can probably also drop the 220R series resistors as they shouldn't be required.

You should be ok without the diodes just be careful not to output high to the SDA or SCL pin at any time in your program.

There is a schematic for our EBM015 board here: http://www.matrixtsl.com/resources/getr ... php?id=501

joe nova
Posts: 9
Joined: Sun Mar 01, 2015 10:55 pm
Has thanked: 14 times
Contact:

Re: EBM015-TEST PROGRAM

Post by joe nova »

Hello Benj

I really was not paying due attention to pull up, but already had a partial success could read the HMC5883L magnetometer (break-out sparkfun) with software that you posted in, http://www.matrixtsl.com/mmforums/viewt ... ass#p65640
changed the chip atmega 328p and the I2C port configured hardware channel 1. It ran well in the simulation and the real world.
Still not got success in reading the accelerometer and magnetometer LSM303 in the real world, only in the simulation, I believe being close to achieve.
maybe my problem is in the interruption or addressing.

Post Reply