Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - tinybuilder

Pages: 1
1
New Product Ideas / Gas Sensor Adapter Board for the MQ-series sensors
« on: March 10, 2014, 12:36:57 AM »
A top mounted carrier board for the MQ-series sensors, much like the Pololu board, would be great for little data collection packages.

Source for sensors:
http://www.pololu.com/category/83/gas-sensors
https://www.futurlec.com/Gas_Sensors.shtml
http://www.electrodragon.com/product/mq-2-mq-3-mq-5-series-sensors-variables/ (Inexpensive!)

Of course, other sensors such as those found at Figaro, would be cool to have as well.

2
General Discussion / Communicating over I2C between 2 TinyDuino Stacks
« on: March 04, 2014, 12:22:09 AM »
I figured I'd start a thread to discuss Communicating over I2C between 3 TinyDuino Stacks. I don't suggest trying this until further discussion and input is given by other members of the community.

To start with, 3 TinyDuino stacks, each with a TinyDuino processor module and a TinyDuino proto3 shield (a prototype shield 2 should also work too.)

From what I understand, the stacks should be wired as shown in this picture. For the power source, I choose VBATT, but VCC or VIN may be more appropriate. Anyone have pros/cons for using something other than VBATT? I choose 1.5K pull up resistors but from what I understand, up to 47K can be used.

The I2C signals are the SCL (I2C Clock) and SDA (I2C Data) connections.

The code shown below, is based on the Instructables article I2C between Arduino's

Master Code (runs on 1 of the stacks)
Code: [Select]
#include <Wire.h>

#define LED_PIN 13
byte x = 0;

void setup()
{
  Wire.begin(); // Start I2C Bus as Master
  pinMode(LED_PIN, OUTPUT);
  digitalWrite(LED_PIN, LOW);

}
void loop()
{
 
  Wire.beginTransmission(9); // transmit to device #9
  Wire.send(x);              // sends x
  Wire.endTransmission();    // stop transmitting
  x++;
  if (x > 5) x=0;
  delay(900);
}

Slave Code (runs on 2 of the stacks)
Code: [Select]
#include <Wire.h>

#define LED_PIN 13

int x;

void setup() {
  Wire.begin(9);                // Start I2C Bus as a Slave (Device Number 9)
  Wire.onReceive(receiveEvent); // register event
 
  pinMode(LED_PIN, OUTPUT);
 
  digitalWrite(LED_PIN, LOW);
 
  x = 0;
}

void loop() {
  //If value received is 0 blink LED 1
  if (x == 0) {
    digitalWrite(LED_1, HIGH);
    delay(100);
    digitalWrite(LED_1, LOW);
    delay(100);
  }
  //If value received is 1 blink LED 2
  if (x == 1) {
    digitalWrite(LED_1, HIGH);
    delay(300);
    digitalWrite(LED_1, LOW);
    delay(300);
  }
}

void receiveEvent(int howMany) {
  x = Wire.receive();    // receive byte as an integer
}

3
New Product Ideas / How about a 170 Points Mini Breadboard adapter?
« on: March 01, 2014, 11:47:02 PM »
How about a 170 Points Mini Breadboard adapter? You could plug a TinyDuino stack into the adapter and have a breakout for all of the pins. It could be great for testing, prototyping, expanding...

The 170 Points Mini Breadboard adapter is ~35mm x 47mm with a center channel of 3.2mm. Some have 2 mounting holes, some do not. I think mounting holes on the breadboard are great! The ones I have also have sticky tape on the bottom as well.

170 Points Mini Breadboard adapter
----------------------------------------------
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|_______________________________|
|_______________________________|
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
----------------------------------------------

TinyDuino mini breadboard adapter
Adapter board would be ~20mm x 20mm + 7mm x 35mm with mounting holes.

A configuration
TinyDuino Connector (~5mm x 13mm) perpendicular to breadboard channel
++
++
++
++

Top view of TinyDuino mini breadboard adapter with TinyDuino connector OFF the breadboard
Pin connections would run on top and bottom to run 16 lines on each side to connect to the pins.
                      Tie Points at the end (row 17) -------v perhaps can be Power and GND?
----------------------
| o                  o |
|                       |
|                 ++  |-------------------------------------------  <- close to 2nd row tie point.
|                 ++  |  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  |  The PCB should be as narrow
|                 ++  |  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  |  as possible.
|                 ++  |-------------------------------------------  <- close to 2nd row tie point.
|                       |
| o                  o |
----------------------
                 ^^--- The connector and mounting PCB is OFF the breadboard

Side view of TinyDuino breadboard adapter
Support block
::::::
::::::
or there could be nylon standoff legs to support the TinyDuino stack hanging off the breadboard
:
:

******* TinyDuino Board
        ++
******* TinyDuino Board
        ++
******* TinyDuino Board
        ++                                                         (Connector)
----------------------------------------------------------  (PCB Board)
::::::         |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  (Pins)
::::::     [ =========================  Breadboard with inter-lock notch


---- Adapter ----  --------------- Breadboard ----------------
v                   v  v                                                   v
                        |---------------------------------------------|
                        |  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
---------------------|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
| o                  o |  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|                       |  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
|                 ++  |-------------------------------------------  |<- close to 2nd row tie point.
|                 ++  |  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  | | The PCB should be as narrow
|                 ++  |  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  | | as possible.
|                 ++  |-------------------------------------------  |<- close to 2nd row tie point.
|                       |  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
| o                  o |  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
---------------------|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
                        |  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  . |
                        |---------------------------------------------|


An alternate configuration 1
Adapter board would be ~7mm x 35mm

TinyDuino Connector (~5mm x 13mm) perpendicular to breadboard channel
++
++
++
++

Top view of TinyDuino mini breadboard adapter
Pin connections could run on top and bottom to run 16 lines on each side to connect to the pins.
The connector and edge of board would run very close to the 2 row tie point from the channel.
Tie Points at the end (row 17) -----v perhaps can be Power and GND?
--------------------------------------------- <- close to 2nd row tie point.
|  ++  .  .  .  .  .  .  .  .  .  .  .  .  .  .  |
|  ++==================     |
|  ++==================     |
|  ++  .  .  .  .  .  .  .  .  .  .  .  .  .  .  |
--------------------------------------------- <- close to 2nd row tie point.

Side view of TinyDuino breadboard adapter

  ++                                                  (Connector)
----------------------------------------------- (PCB Board)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  (Pins)


Unfortunately, this configuration sits the TinyDuino Stack over 6 columns (1 left/5 right or visa versa) and 7 rows of tie points.


An alternate configuration 2

Top view of TinyDuino breadboard adapter
TinyDuino Connector ~5mm x 13mm connector down the breadboard channel
+++++++
+++++++

Pin connections could run on top and bottom to run 16 lines for each side to connect to the left and right side pins.
Tie Points at the end (row 17) -------v perhaps can be Power and GND?
-----------------------------------------------
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  |
|    +++++++=============     |
|    +++++++=============     |
|  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  |
-----------------------------------------------

Side view of TinyDuino breadboard adapter

  +++++++                                       (Connector)
----------------------------------------------- (PCB Board)
  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  (Pins)

Unfortunately, this configuration sits the TinyDuino Stack over 6 columns (3 left/3 right) and 7 rows of tie points.

Pages: 1
SMF spam blocked by CleanTalk