RoSchmi
September 1, 2017, 12:42pm
21
With the oscillosope I see no spikes on I2C lines of the oled display with the Arduino App. When I use a BrainPad TinyCLR App I can see spikes when I write on the display.
Something seems to be wrong with the pin definitions.
Yes i forgot one thinggggggg
pinnames.h should be pullup for i2c pins but i will send to you info when i go home
1 Like
Are you relying only on internal pullups for i2c??
Some implementations may need stronger pullups. I had to use 1k pullups with multiple MCP23017’s on a bus. Datasheet will tell you definitively (in that case MCP’s datasheet recommended 1k on those, not 2.2k)
RoSchmi
September 2, 2017, 9:32am
24
I suggest to continue the discussion about the oled display in a separate thread.
Gus nice video tutorial explained how Arduino sketches can be run on the new BrainPad V2
https://forums.ghielectronics.com/t/running-arduino-on-the-brainpad/20656
It turned out to be easy to use the LEDs and the Buttons of the BrainPad in Arduino code.
However there were problems to use the I2C oled display in Arduino code (see discussion on the above thread).
To prevent pollution of this video tutorial thread with to many details I suggest to continue the discussion about the display in thi…
This thread should not be overfreighted with too many details.
1 Like
Today I Received Brainpad so from today i will test and check and re-create all examples from ghi to arduino ide and 2 mbed variants (one with vs2017 and visualgdb)(another one with online mbed compiler) and i will publish them at github with instructions.
2 Likes
I tested some samples with i2c ssd1306 and i can confirm code that working for Nucleo STM33F411 do not work on Brainpad version compiled for Nucleo STM32F401 even with pullup version as you say.
I’m going next test I2C scanner to see what detect it.
RoSchmi
September 3, 2017, 5:07pm
27
O.K., the Adafruit_ssd1306_128x64 library now works perfectly on the BrainPad.
Gus nice video tutorial explained how Arduino sketches can be run on the new BrainPad V2
https://forums.ghielectronics.com/t/running-arduino-on-the-brainpad/20656
It turned out to be easy to use the LEDs and the Buttons of the BrainPad in Arduino code.
However there were problems to use the I2C oled display in Arduino code (see discussion on the above thread).
To prevent pollution of this video tutorial thread with to many details I suggest to continue the discussion about the display in thi…
RoSchmi
September 4, 2017, 11:25pm
28
And here is my first Project with the BrainPad running Arduino Code
BaronVonSchnowzer found a way to receive the signals of the Ambient/Froggit F007TH 433 MHz Remote Temperature/Humidity Sensor with Arduino boards.
Running Arduino code the BrainPad can be used to decode and display the temperature and humidity values.
The Arduino Sketch Temperature.ino can be downloaded from here (Post #33)
What you need is:
Ambient or Froggit F007TH Sensor
433 Mhz RF Receiver like Aurel RX-4MM3++/F
BrainPad
Download Temperature.ino from the above link.
Include the fol…
4 Likes
RoSchmi
October 22, 2017, 5:50pm
29
And here is, how the BrainPad can be programmed via the serial SWD Interface
In his Video tutorial Gus pointed out, how the BrainPad can run native code developed with the Arduino IDE.
https://forums.ghielectronics.com/t/running-arduino-on-the-brainpad/20656
The procedure of getting the code to the board however was a little bit inconvenient.
The binary code file was exported by the Arduino IDE, then converted into a .dfu file with the DfuFileMgr and at last the .dfu file deployed to the board with the DfuSeDemo Program.
Using a ST-Link Adapter the BrainPad can be pr…
1 Like
RoSchmi
October 25, 2017, 11:38am
30
And here is Buzzer, Lightsensor, Temperaturesensor, and Accelerometer
Reading the Light- and Temperature-Sensors was trivial.
For the Accelerometer there is an Arduino library at
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include "Adafruit_SSD1306.h"
//http://www.arduinolibraries.info/libraries/mma8453_n0m1
#include <MMA8453_n0m1.h>
/* ============== MAIN =====================*/
//Use I2C with OLED RESET pin on D13
#define OLED_RESET 13
Adafruit_SSD1306 oled(OLED_RESET);
#if (SSD1306_LCDHEIGHT != 64)
#error("Height incorrect, please fix …
5 Likes