Notifications
Clear all

fresh eyes and a little help

52 Posts
4 Users
2 Likes
1,796 Views
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2535
 

@ozyjimbo 

Are you using the same power supply for the Arduino, player and LEDs ?

Anything seems possible when you don't know what you're talking about.


   
ReplyQuote
(@usagi_13hotmail-com)
Supreme Сasual Dating - True Females
Joined: 1 year ago
Posts: 31
Topic starter  

@will yes i am i'm still under the 900ma threshold as i'm using the pir on the 3v3 so the only devices being used on the nano board 5v is the player and lights i did allow a 10% on the led 20ma each and the player via the book is 2ma

This post was modified 1 year ago by usagi_13@hotmail.com

[URL=https://datesnow.life]Verified Maidens[/URL]


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2535
 

@ozyjimbo 

That 3.3V you mentioned, is it also drawing from the Arduino ? What is the 900 mA threshold from ?

 

Anything seems possible when you don't know what you're talking about.


   
ReplyQuote
(@usagi_13hotmail-com)
Supreme Сasual Dating - True Females
Joined: 1 year ago
Posts: 31
Topic starter  

@will ok you got me on an oversight i'm using usb duh the 900ma is if you are running vin guess what i'm gonna try run the lights on a sep voltage see to much time on this bloody coding lol

[URL=https://datesnow.life]Verified Maidens[/URL]


   
ReplyQuote
(@usagi_13hotmail-com)
Supreme Сasual Dating - True Females
Joined: 1 year ago
Posts: 31
Topic starter  

made no difference no matter where i put the mpplayer.play in the loop it doesn't play i have tried to add it to else if for adding another digitalWrite for unknown reasons it still not playing

[URL=https://datesnow.life]Verified Maidens[/URL]


   
ReplyQuote
(@usagi_13hotmail-com)
Supreme Сasual Dating - True Females
Joined: 1 year ago
Posts: 31
Topic starter  

ok i got this one to work but only works on board reset when it finishes it doesn't let you retrigger with the pir and the lights when turned off flicker like they are coded for lightning

 

[URL=https://datesnow.life]Verified Maidens[/URL]


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7001
 

@ozyjimbo millis() returns unsigned long

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@usagi_13hotmail-com)
Supreme Сasual Dating - True Females
Joined: 1 year ago
Posts: 31
Topic starter  

@zander yes i did a bit of reading regarding millis but have left that sketch behind and started work on a more simpler sketch attached in my last post i made two working sketches one for lights and one for mp3 player and joined them but doesn't wanna work as well as i thought it would

[URL=https://datesnow.life]Verified Maidens[/URL]


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7001
 

@ozyjimbo Maybe you should start at the IDE Examples/Basics to give you a tiny amount of background to build on. Almost everyone here started at Blink, or maybe 'Hello World'. Even thos of us with over 50 yrs of experience when trying out a new language almost always start at 'Hello World' then move on to examples that are more relevant to what we want to do. Perhaps after you work through some basics post a question in Help Wanted along the lines of 

I want to turn on some Leds and play some music every time somebody walks in a room.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@usagi_13hotmail-com)
Supreme Сasual Dating - True Females
Joined: 1 year ago
Posts: 31
Topic starter  

@zander that's where I started examples then reading then branching out to the point i'm at know i don't know everything i have done enough to get me to a point of a somewhat working sketch i guess it's not worth helping on?

[URL=https://datesnow.life]Verified Maidens[/URL]


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7001
 

@ozyjimbo I took your first sketch you posted and fixed a couple things plus fleshed out the logic to include all 4 conditions. I added some debug println's so you can see what conditions are occuring. Give it a try and show us the serial output. Only a dozen or less lines from serial output from midway to end. Use a screen grabber don't use a cell.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7001
 

@ozyjimbo Sorry, I don't understand you, but what I don't see is a statement of requirements. I am old and have poor memory, but IIRC you want to do something with LED's, an MP3 player, and PIR?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
(@usagi_13hotmail-com)
Supreme Сasual Dating - True Females
Joined: 1 year ago
Posts: 31
Topic starter  

@zander all good i'll try your sketch IIRC is that still going? i haven't used that in years i mainly use crapbook messenger i do appologise for my little outburst above was just getting frustrated as what seemed to be something easy to Frankenstein turned out to be a horror show my learning capacity isn't all the great these days and i pretty much only absorb 5% maybe on a good day 10% but yup i'll load the sketch and do a serial output something i rearly do on my anti acquainted laptop

[URL=https://datesnow.life]Verified Maidens[/URL]


   
ReplyQuote
(@usagi_13hotmail-com)
Supreme Сasual Dating - True Females
Joined: 1 year ago
Posts: 31
Topic starter  

good news it works ron i sent a mobile pic on messenger as the laptop doesn't do print scr and the serial monitor just produced what you see in the pic

thanx for getting this going so now i shall cross examine where i went wrong

[URL=https://datesnow.life]Verified Maidens[/URL]


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7001
 

@ozyjimbo How do you know my messenger ID? Just google print screen and you will get instructions. IIRC it's PrtScn or use the snippet tool. I use a Mac so my instructions are different.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ReplyQuote
Page 3 / 4