SOCIALS 

SUBSCRIBE 

 Please subscribe.   So, you will get notification of the latest exciting posts. 

© 2023 by FEEDs & GRIDs. Proudly created with Wix.com

ABOUT FEEDs & GRIDs

My name is Mike.   This blog is made especially for you to enter my technology universe.  You will find new ideas and skills that may be helpful to you.   Feel free to leave your comments.   I am excited to hear from you.  Thank you. 

Add ADC to S5D9 IOT board

March 2, 2018

Project Goals

  • Learn to connect a popular 4 channels ADC Module to the 3.3V S5D9 IOT board.

  • Examples show how to connect it to either grove A (r_sci_i2c port) or B (r_iic port).

  • Examples show either configuration with and without using framework.

 

Project Description

 

This board has two grove headers. Grove B is an IIC port while grove A is an SCI port. You creates r_iic driver for the IIC port and r_sci_i2c for the SCI port.

6 examples are included in this tutorial.

  1. Grove B / r_iic driver (only for the fast speed mode) *

  2. Grove B / framework with r_iic driver

  3. Grove A / r_sci_i2c driver

  4. Grove A / framework with r_sci_i2c driver

  • Because r_iic has some issue for standard speed mode. Two possible workaround examples are included.

  1. Grove B / r_iic driver / method 1 with busy bit check

  2. Grove B / r_iic driver / method 2 with busy bit check

Both examples check for the hardware busy bit before the code starts the next i2c transmission. The above examples are are done with limited testing. At this point, this ADC component seem to work well with these workaround solutions.

 

Software

 

1. Renesas E2 Studio Tool version 5.4.0.023

2. Renesas SSP version 1.30

3. S5D9 IOT ENABLER pack file

 

 

Hardware Ports for this project

 

 

 

Hardware Part:

 

ADC module ADS1015 12-Bit ADC - 4 Channel with Programmable Gain Amplifier https://www.adafruit.com/product/1083

 

 

Download

 

After downloading the project file, use import function in E2 Studio to stream the project into your workspace directory.

 

https://github.com/mikelisfbay/S5D9_lab_ADC_I2C_ADS1015_examples

 

 

 

Share on Facebook
Share on Twitter
Please reload

RECENT POSTS

Please reload

FEATURED POSTS

I2C Tutorial for Renesas S5D9 board: Add ThreadX real time OS support. (Part 3)

February 18, 2018

1/5
Please reload

FOLLOW US

  • Grey Facebook Icon
  • Grey Twitter Icon
  • Grey Instagram Icon
  • Grey Google+ Icon
  • Grey Pinterest Icon
This site was designed with the
.com
website builder. Create your website today.
Start Now