Go to advanced search

by pdesnoyers76
Sun Mar 27, 2016 12:52 pm
Forum: Advanced users
Topic: rtc_ds1307 - Can't read temp on DS3231
Replies: 4
Views: 1315

rtc_ds1307 - Can't read temp on DS3231

I'm try to read the temp from a DS3231 rtc. But everytime I try I get: IOError: [Errno 16] Device or resource busy.... If I kill the process rtc_ds1307, as per below, then it works: 1- sudo rmmod rtc_ds1307 2- run python script to get temp import smbus bus = smbus.SMBus(1) address = 0x68 def getTemp...
by pdesnoyers76
Thu Mar 17, 2016 4:19 pm
Forum: Off topic discussion
Topic: Onewire Library for avrdude for DS18B20 temp sensor????
Replies: 4
Views: 1012

Re: Onewire Library for avrdude for DS18B20 temp sensor????

Maybe for the second question, my apology. But the first one is for avrdude running on a raspberry?
by pdesnoyers76
Thu Mar 17, 2016 2:19 pm
Forum: Off topic discussion
Topic: Onewire Library for avrdude for DS18B20 temp sensor????
Replies: 4
Views: 1012

Onewire Library for avrdude for DS18B20 temp sensor????

For some reason I can't find the onewire library for avrdude. Where and how to import the library?

I'm trying to setup an arduino to read 3 DS18B20. I want them to be on 3 different PIN's so if I ever need to replace one, I don't have to go in and change the serial number... Is it possible?
by pdesnoyers76
Wed Mar 02, 2016 1:21 am
Forum: Python
Topic: Use a momenary switch to triger diffrent action
Replies: 2
Views: 495

Use a momenary switch to triger diffrent action

I been trying to figure out how I would use on GPIO pin to detect the amount of time it's being press and depending on the amount it would perform an action. I was thinking of using 2 switch, one too chose the action and one as a "enter key". GPIO 23 would be the action selector, GPIO 24 would be th...
by pdesnoyers76
Thu Feb 25, 2016 7:11 pm
Forum: Advanced users
Topic: Best UPS Solution/Package for RPI2B
Replies: 2
Views: 615

Best UPS Solution/Package for RPI2B

There is multiple package available, battery, battery less, automatic power down... Any suggestion that would include these: 1- Couple of hours of runtime 2- Automatic shutdown and wake up when power is back 3- Protection against brown out 4- power down button/reset and power up Any suggestion or re...
by pdesnoyers76
Thu Feb 25, 2016 1:19 pm
Forum: Advanced users
Topic: RTC DS3231 AT24C32 disable or not the charging mudule?????
Replies: 2
Views: 1134

Re: RTC DS3231 AT24C32 disable or not the charging mudule???

That's what I taught... I don't know the draw of the battery but from china you can order 10 rechargeable for 10$. But how many of those will be DOA, don't know... But for the price it's kind of looks like a buy.
by pdesnoyers76
Thu Feb 25, 2016 2:28 am
Forum: Advanced users
Topic: RTC DS3231 AT24C32 disable or not the charging mudule?????
Replies: 2
Views: 1134

RTC DS3231 AT24C32 disable or not the charging mudule?????

I just bought DS3231 AT24C32 Mini High RTC Real Time Clock Timer Memory Module Pack Of 3 off Amazon. They work first tried... Now I don't know if I should buy a rechargeable battery or disable the charging module and stick with the regular battery. What you guys, and gal's, think? You can get Rechar...
by pdesnoyers76
Sun Feb 21, 2016 11:33 am
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

Re: RPI 2B can't load sketch to Arduino Pro Mini

It's working... The GRN I thought it was Ground. Why they didn't call it RST or just plain RESET.... What dose it stand for GRN, green? Anyways.... So I reconnect everything the way you said and change to 57600 baud and "ET VOILA".... I'm sure I already try this but... I tried again on RPI with the ...
by pdesnoyers76
Sat Feb 20, 2016 6:45 pm
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

Re: RPI 2B can't load sketch to Arduino Pro Mini

I told you in UP that your DTR code has some errors. That's why it doesn't work. I saw that and thanks. But I might of post it but I apply that fix and it still didn't work. That's why I move to my PC with the USB/serial converter As for picture there you go. And a side note I move the DTR from BLK...
by pdesnoyers76
Sat Feb 20, 2016 12:38 pm
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

Re: RPI 2B can't load sketch to Arduino Pro Mini

Use USB and bootloader (OK) Doesn't work: avrdude-original: stk500_recv(): programmer is not responding Use serial (UART) pins and a simulated DTR to pulse the reset pin, with a bootloader (Flakey) Doesn't work either: avrdude-original: stk500_recv(): programmer is not responding Use the ICSP inter...
by pdesnoyers76
Fri Feb 19, 2016 9:21 pm
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

Re: RPI 2B can't load sketch to Arduino Pro Mini

At this point I'm just try to get my PC to talk to the pro mini directly via a MICRO-USB-to-UART-TTL-Module-6Pin-Serial-Converter-CP2102(look on ebay). If I get that to work then it will be easier to get the RPI to work. This is the pro mini I have: http://www.amazon.ca/DIYmall-Leonardo-Atmega328P-A...
by pdesnoyers76
Fri Feb 19, 2016 2:42 am
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

Re: RPI 2B can't load sketch to Arduino Pro Mini

I finally got my usb to uart bridge, and guess what, still not working... So I plug the uart bridge to my PC and tried it without success. I went back to arduino and reburn the bootloader and here the output. It seam fine to me. C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Prog...
by pdesnoyers76
Wed Feb 17, 2016 10:20 pm
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

Re: RPI 2B can't load sketch to Arduino Pro Mini

Did all that. And still can't load sketch... code for autoreset: #!/usr/bin/python import RPi.GPIO as GPIO import sys, os, re, time, fcntl fd = sys.stdin.fileno() fl = fcntl.fcntl(fd, fcntl.F_GETFL) fcntl.fcntl(fd, fcntl.F_SETFL, fl | os.O_NONBLOCK) GPIO.setmode(GPIO.BCM) dtr = re.compile('.+TIOCM_D...
by pdesnoyers76
Tue Feb 16, 2016 10:21 pm
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

Re: RPI 2B can't load sketch to Arduino Pro Mini

here the output [email protected]:~# avrdude -v -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 9600 -U flash:w:RFM12_Demo_ATmega328.cpp.hex avrdude-original: Version 6.1, compiled on Jul 7 2015 at 10:29:47 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch S...
by pdesnoyers76
Tue Feb 16, 2016 8:32 pm
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

Re: RPI 2B can't load sketch to Arduino Pro Mini

Ok, I did put the bootloader back on the Arduino PRO mini. The green light is blinking. Next, RPI to m328p via the UART ports is connected as follow: GPIO 14: TXD -> RX GPIO 15: RXD -> TX GPIO 22: Reset -> RST 3.3v -> VCC GND -> GND Still getting -> avrdude-original: stk500_getsync() attempt 10 of 1...
by pdesnoyers76
Tue Feb 16, 2016 3:38 am
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

Re: RPI 2B can't load sketch to Arduino Pro Mini

I did that successfully... then I can upload ode using programmer in IDE. It all ways works using the arduino, but when it try with RPI it fail...ie I load sketch on the arduino to send the letter a on the serial port. I move the arduino to RPI and Iget data from the serial console in IDE. But I can...
by pdesnoyers76
Sun Feb 14, 2016 1:16 am
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

Re: RPI 2B can't load sketch to Arduino Pro Mini

So you always need a USB/serial bootloader to load? That method suggested on that web site would not work?
by pdesnoyers76
Sat Feb 13, 2016 12:33 am
Forum: Advanced users
Topic: RPI 2B can't load sketch to Arduino Pro Mini
Replies: 20
Views: 4928

RPI 2B can't load sketch to Arduino Pro Mini

I follow the procedure from this web site to get the serial port up and connected to Arduino pro mini m328p. http://spellfoundry.com/sleepy-pi/setting-arduino-ide-raspbian/ Before I hook it up to my RPI, I tested it first with an arduino to see if it was functional. I loaded a dummy sketch to my m32...
by pdesnoyers76
Wed Feb 10, 2016 1:01 am
Forum: Advanced users
Topic: RPI 2B to Arduino pro mini
Replies: 4
Views: 1347

Re: RPI 2B to Arduino pro mini

I guess I am on the right track. I have my RPI setup as master and my arduino uno setup as slave and they communicate via i2c. it's working fine in my current code. The arduino has a photocell hook up on a analog pin and it send back light read to the PI and the PI make the led on a 10 led bar go on...
by pdesnoyers76
Tue Feb 09, 2016 3:49 pm
Forum: Advanced users
Topic: RPI 2B to Arduino pro mini
Replies: 4
Views: 1347

RPI 2B to Arduino pro mini

I'm new to RPI 2B world and I'm trying to setup some kind of error check communication between a RPI 2B and Arduino pro mini. In case of power failure, or failures of any component there would be back door to my script fall into a failed safe mode. Ex. I want to be able to program my RPI to query th...
by pdesnoyers76
Tue Feb 09, 2016 3:25 pm
Forum: Beginners
Topic: RPI 2B to program Arduino pro min 3.3v and/or 5v???
Replies: 2
Views: 535

Re: RPI 2B to program Arduino pro min 3.3v and/or 5v???

So if I understand, the TX/RX on the pi communicate at 3.3v...
by pdesnoyers76
Mon Feb 08, 2016 11:00 pm
Forum: Beginners
Topic: RPI 2B to program Arduino pro min 3.3v and/or 5v???
Replies: 2
Views: 535

RPI 2B to program Arduino pro min 3.3v and/or 5v???

Hi everybody... I'm new to the Raspberry Pi world so if the question was ask before my apology. If you have a Raspberry Pi 2B with 3.3v and 5v power , can you program via TXD/RSD uart port an Arduino pro min 3 .3v or/and 5v ? The reason I'm asking there a lot of info out there that seem to always sa...

Go to advanced search