SparkFun Forums 

Where electronics enthusiasts find answers.

Search found 11 matches

 Go to advanced search

Re: Interfacing Thing Dev with another device using I2C and Arduino

 by zhulien ¦  Sat Mar 24, 2018 11:19 am ¦  Forum: SparkFun Product Questions ¦  Topic: Interfacing Thing Dev with another device using I2C and Arduino ¦  Replies: 9 ¦  Views: 397

Okay, I knew I was screwing something simple. So, basically, after trying everything hardware related, I started looking what am I missing code-wise. I included the Wire.h library and did the default mapping(for the Thing Dev) of the SDA/SCL pins and it finally worked. No idea why I had to do this e...

Re: Interfacing Thing Dev with another device using I2C and Arduino

 by zhulien ¦  Sat Mar 24, 2018 8:57 am ¦  Forum: SparkFun Product Questions ¦  Topic: Interfacing Thing Dev with another device using I2C and Arduino ¦  Replies: 9 ¦  Views: 397

Have you tried with just a single led (with current limiting resistor) on the PWM output to test if there is a changing voltage at all? Try to reduce complexity by testing if indivudual parts work as they should. So first without mosfet and ledstring. So, started from the simplest thing possible. T...

Re: Interfacing Thing Dev with another device using I2C and Arduino

 by zhulien ¦  Fri Mar 23, 2018 8:52 am ¦  Forum: SparkFun Product Questions ¦  Topic: Interfacing Thing Dev with another device using I2C and Arduino ¦  Replies: 9 ¦  Views: 397

Yeah, that's actually what I planned to do today. Will post an update in a few hours.

Re: Interfacing Thing Dev with another device using I2C and Arduino

 by zhulien ¦  Fri Mar 23, 2018 7:52 am ¦  Forum: SparkFun Product Questions ¦  Topic: Interfacing Thing Dev with another device using I2C and Arduino ¦  Replies: 9 ¦  Views: 397

#include <Adafruit_PWMServoDriver.h> Adafruit_PWMServoDriver pwm; void setup() { pwm = Adafruit_PWMServoDriver(0x40); pwm.begin(); pwm.setPWMFreq(1600); } void loop() { for(int i = 0; i <= 4095; i++) { pwm.setPWM(15, 0, i); //yield(); } for(int i = 4095; i >= 0; i--) { pwm.setPWM(15, 0, i); //yield...

Interfacing Thing Dev with another device using I2C and Arduino

 by zhulien ¦  Fri Mar 23, 2018 2:40 am ¦  Forum: SparkFun Product Questions ¦  Topic: Interfacing Thing Dev with another device using I2C and Arduino ¦  Replies: 9 ¦  Views: 397

Hello. I am trying to connect my Thing Dev controller to a PWM Servo driver(https://www.adafruit.com/product/815). Considering these topics: 1. https://learn.sparkfun.com/tutorials/esp8266-thing-development-board-hookup-guide/all#hardware-overview 2. https://learn.adafruit.com/16-channel-pwm-servo-d...

Re: Sending data from PC to multiple Thing Devs in realtime

 by zhulien ¦  Wed Mar 14, 2018 9:41 am ¦  Forum: Wireless/RF ¦  Topic: Sending data from PC to multiple Thing Devs in realtime ¦  Replies: 9 ¦  Views: 829

The LED strips are 5 meters long at most. They draw about 1.2A per meter at full brightness(for the 3 channels). So, considering the worst possible case, we have 5 * 1.2A = 6A total for the whole strip. We have a MOSFET for each channel so we come up with 2A per MOSFET, so I suppose I'll be safe. Th...

Re: Sending data from PC to multiple Thing Devs in realtime

 by zhulien ¦  Wed Mar 14, 2018 9:06 am ¦  Forum: Wireless/RF ¦  Topic: Sending data from PC to multiple Thing Devs in realtime ¦  Replies: 9 ¦  Views: 829

I am not driving servo motors. I am actually driving 12V LED strips through IRLB8721 MOSFETs(https://www.adafruit.com/product/355) using the PWM pins of the servo driver. Considering this: "The threshhold voltage is also very low, less than 2.5V so you can control it directly from a microcontroller ...

Re: Sending data from PC to multiple Thing Devs in realtime

 by zhulien ¦  Tue Mar 13, 2018 8:57 am ¦  Forum: Wireless/RF ¦  Topic: Sending data from PC to multiple Thing Devs in realtime ¦  Replies: 9 ¦  Views: 829

So, this might be for another thread but I might as well ask here because it is connected. I'm planing to connect the Thing Dev to a PCA9685(https://learn.adafruit.com/16-channel-pwm-servo-driver/). I've used it with arduino already, but I'm not sure how exactly to connect it to the Thing. Consideri...

Re: Sending data from PC to multiple Thing Devs in realtime

 by zhulien ¦  Mon Mar 12, 2018 1:32 am ¦  Forum: Wireless/RF ¦  Topic: Sending data from PC to multiple Thing Devs in realtime ¦  Replies: 9 ¦  Views: 829

Thank you for the input. I haven't tried multicasting because it seems to me as a bit overkill, especially, like you said, in finding the proper library to do so. I investigated a bit more and I will try doing it with messaging and MQTT. I'll host a broker on my PC and I did find an easy to use libr...

Re: Sending data from PC to multiple Thing Devs in realtime

 by zhulien ¦  Thu Mar 08, 2018 8:45 am ¦  Forum: Wireless/RF ¦  Topic: Sending data from PC to multiple Thing Devs in realtime ¦  Replies: 9 ¦  Views: 829

I actually need the simplest possible solution, just need the data to be received in a margin of milliseconds after the send. Considering it is 5-6 integers(even shorts as the maximal value is 4095) the payload will be around 20-24 bytes per packet. Like I said, I need this to happen a couple times ...

Sending data from PC to multiple Thing Devs in realtime

 by zhulien ¦  Wed Mar 07, 2018 1:22 am ¦  Forum: Wireless/RF ¦  Topic: Sending data from PC to multiple Thing Devs in realtime ¦  Replies: 9 ¦  Views: 829

Hello. I am doing a project where I need to send data from my PC to multiple Sparkfun Thing Devs based on conditions. The data is in the same format every time and for every board and consists of a couple of numbers. The thing is I need to send such type of data a couple times a second because I nee...